C++: Fix asDefinition to not only work for SSA definitions.

This commit is contained in:
Mathias Vorreiter Pedersen
2026-01-23 16:23:21 +00:00
parent e58a8330cd
commit a556152b9d
2 changed files with 12 additions and 6 deletions

View File

@@ -10,9 +10,9 @@ void test() {
y = 44; // $ asDefinition="... = ..."
use(y);
int x = 43; // $ MISSING: asDefinition=43
x = 44; // $ MISSING: asDefinition="... = ..."
int x = 43; // $ asDefinition=43
x = 44; // $ asDefinition="... = ..."
S s;
s.x = 42; // $ MISSING: asDefinition="... = ..."
s.x = 42; // $ asDefinition="... = ..."
}