C++: Update tests after extractor changes related to static variables

This commit is contained in:
Jeroen Ketema
2024-02-20 15:02:54 +01:00
parent c1f18edfed
commit 57cb7f8218
2 changed files with 8 additions and 22 deletions

View File

@@ -10404,24 +10404,6 @@ ir.cpp:
# 1245| Type = [PointerType] const char *
# 1245| ValueCategory = prvalue(load)
# 1246| getStmt(3): [ReturnStmt] return ...
# 1246| getImplicitDestructorCall(0): [DestructorCall] call to ~String
# 1246| Type = [VoidType] void
# 1246| ValueCategory = prvalue
# 1246| getQualifier(): [VariableAccess] c
# 1246| Type = [Struct] String
# 1246| ValueCategory = lvalue
# 1246| getImplicitDestructorCall(1): [DestructorCall] call to ~String
# 1246| Type = [VoidType] void
# 1246| ValueCategory = prvalue
# 1246| getQualifier(): [VariableAccess] b
# 1246| Type = [Struct] String
# 1246| ValueCategory = lvalue
# 1246| getImplicitDestructorCall(2): [DestructorCall] call to ~String
# 1246| Type = [VoidType] void
# 1246| ValueCategory = prvalue
# 1246| getQualifier(): [VariableAccess] a
# 1246| Type = [Struct] String
# 1246| ValueCategory = lvalue
# 1250| [TopLevelFunction] char* strcpy(char*, char const*)
# 1250| <params>:
# 1250| getParameter(0): [Parameter] destination
@@ -16922,7 +16904,7 @@ ir.cpp:
# 2172| getImplicitDestructorCall(0): [DestructorCall] call to ~ClassWithDestructor
# 2172| Type = [VoidType] void
# 2172| ValueCategory = prvalue
# 2172| getQualifier(): [VariableAccess] b
# 2172| getQualifier(): [VariableAccess] a
# 2172| Type = [Class] ClassWithDestructor
# 2172| ValueCategory = lvalue
# 2174| [TopLevelFunction] void static_variable_with_destructor_2()
@@ -16977,7 +16959,13 @@ ir.cpp:
# 2183| getImplicitDestructorCall(0): [DestructorCall] call to ~ClassWithDestructor
# 2183| Type = [VoidType] void
# 2183| ValueCategory = prvalue
# 2183| getQualifier(): [VariableAccess] c
# 2183| getQualifier(): [VariableAccess] b
# 2183| Type = [Class] ClassWithDestructor
# 2183| ValueCategory = lvalue
# 2183| getImplicitDestructorCall(1): [DestructorCall] call to ~ClassWithDestructor
# 2183| Type = [VoidType] void
# 2183| ValueCategory = prvalue
# 2183| getQualifier(): [VariableAccess] a
# 2183| Type = [Class] ClassWithDestructor
# 2183| ValueCategory = lvalue
# 2185| [GlobalVariable] ClassWithDestructor global_class_with_destructor