Skip to content

Commit 57cb7f8

Browse files
committed
C++: Update tests after extractor changes related to static variables
1 parent c1f18ed commit 57cb7f8

File tree

2 files changed

+8
-22
lines changed

2 files changed

+8
-22
lines changed

cpp/ql/test/library-tests/ir/ir/PrintAST.expected

Lines changed: 8 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -10404,24 +10404,6 @@ ir.cpp:
1040410404
# 1245| Type = [PointerType] const char *
1040510405
# 1245| ValueCategory = prvalue(load)
1040610406
# 1246| getStmt(3): [ReturnStmt] return ...
10407-
# 1246| getImplicitDestructorCall(0): [DestructorCall] call to ~String
10408-
# 1246| Type = [VoidType] void
10409-
# 1246| ValueCategory = prvalue
10410-
# 1246| getQualifier(): [VariableAccess] c
10411-
# 1246| Type = [Struct] String
10412-
# 1246| ValueCategory = lvalue
10413-
# 1246| getImplicitDestructorCall(1): [DestructorCall] call to ~String
10414-
# 1246| Type = [VoidType] void
10415-
# 1246| ValueCategory = prvalue
10416-
# 1246| getQualifier(): [VariableAccess] b
10417-
# 1246| Type = [Struct] String
10418-
# 1246| ValueCategory = lvalue
10419-
# 1246| getImplicitDestructorCall(2): [DestructorCall] call to ~String
10420-
# 1246| Type = [VoidType] void
10421-
# 1246| ValueCategory = prvalue
10422-
# 1246| getQualifier(): [VariableAccess] a
10423-
# 1246| Type = [Struct] String
10424-
# 1246| ValueCategory = lvalue
1042510407
# 1250| [TopLevelFunction] char* strcpy(char*, char const*)
1042610408
# 1250| <params>:
1042710409
# 1250| getParameter(0): [Parameter] destination
@@ -16922,7 +16904,7 @@ ir.cpp:
1692216904
# 2172| getImplicitDestructorCall(0): [DestructorCall] call to ~ClassWithDestructor
1692316905
# 2172| Type = [VoidType] void
1692416906
# 2172| ValueCategory = prvalue
16925-
# 2172| getQualifier(): [VariableAccess] b
16907+
# 2172| getQualifier(): [VariableAccess] a
1692616908
# 2172| Type = [Class] ClassWithDestructor
1692716909
# 2172| ValueCategory = lvalue
1692816910
# 2174| [TopLevelFunction] void static_variable_with_destructor_2()
@@ -16977,7 +16959,13 @@ ir.cpp:
1697716959
# 2183| getImplicitDestructorCall(0): [DestructorCall] call to ~ClassWithDestructor
1697816960
# 2183| Type = [VoidType] void
1697916961
# 2183| ValueCategory = prvalue
16980-
# 2183| getQualifier(): [VariableAccess] c
16962+
# 2183| getQualifier(): [VariableAccess] b
16963+
# 2183| Type = [Class] ClassWithDestructor
16964+
# 2183| ValueCategory = lvalue
16965+
# 2183| getImplicitDestructorCall(1): [DestructorCall] call to ~ClassWithDestructor
16966+
# 2183| Type = [VoidType] void
16967+
# 2183| ValueCategory = prvalue
16968+
# 2183| getQualifier(): [VariableAccess] a
1698116969
# 2183| Type = [Class] ClassWithDestructor
1698216970
# 2183| ValueCategory = lvalue
1698316971
# 2185| [GlobalVariable] ClassWithDestructor global_class_with_destructor

cpp/ql/test/successor-tests/staticlocals/no_dynamic_init/exprs.expected

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,3 @@
22
| no_dynamic_init.cpp:5:12:5:35 | no_dynamic_init.cpp:5:12:5:35 | no_dynamic_init.cpp:5:12:5:35 | Goodbye cruel world.\n |
33
| no_dynamic_init.cpp:5:12:5:35 | no_dynamic_init.cpp:5:12:5:35 | no_dynamic_init.cpp:5:12:5:35 | array to pointer conversion |
44
| no_dynamic_init.cpp:11:10:11:10 | no_dynamic_init.cpp:11:10:11:10 | no_dynamic_init.cpp:11:10:11:10 | 0 |
5-
| no_dynamic_init.cpp:12:1:12:1 | no_dynamic_init.cpp:12:1:12:1 | no_dynamic_init.cpp:12:1:12:1 | call to ~Magic |
6-
| no_dynamic_init.cpp:12:1:12:1 | no_dynamic_init.cpp:12:1:12:1 | no_dynamic_init.cpp:12:1:12:1 | m |

0 commit comments

Comments
 (0)