Skip to content

Commit d40fa4c

Browse files
committed
C++: Accept test changes.
1 parent 8a6a60e commit d40fa4c

File tree

1 file changed

+72
-0
lines changed

1 file changed

+72
-0
lines changed

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

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1986,6 +1986,12 @@ destructors_for_temps.cpp:
19861986
# 39| getExpr().getFullyConverted(): [TemporaryObjectExpr] temporary object
19871987
# 39| Type = [Class] ClassWithDestructor2
19881988
# 39| ValueCategory = prvalue
1989+
# 39| getImplicitDestructorCall(0): [DestructorCall] call to ~ClassWithDestructor2
1990+
# 39| Type = [VoidType] void
1991+
# 39| ValueCategory = prvalue
1992+
# 39| getQualifier(): [ReuseExpr] reuse of temporary object
1993+
# 39| Type = [Class] ClassWithDestructor2
1994+
# 39| ValueCategory = xvalue
19891995
# 40| getStmt(1): [ReturnStmt] return ...
19901996
# 42| [TopLevelFunction] void temp_test6(bool)
19911997
# 42| <params>:
@@ -2096,6 +2102,24 @@ destructors_for_temps.cpp:
20962102
# 51| getExpr().getFullyConverted(): [TemporaryObjectExpr] temporary object
20972103
# 51| Type = [Class] ClassWithDestructor2
20982104
# 51| ValueCategory = prvalue
2105+
# 51| getImplicitDestructorCall(0): [DestructorCall] call to ~ClassWithDestructor2
2106+
# 51| Type = [VoidType] void
2107+
# 51| ValueCategory = prvalue
2108+
# 51| getQualifier(): [ReuseExpr] reuse of temporary object
2109+
# 51| Type = [Class] ClassWithDestructor2
2110+
# 51| ValueCategory = xvalue
2111+
# 51| getImplicitDestructorCall(1): [DestructorCall] call to ~ClassWithDestructor2
2112+
# 51| Type = [VoidType] void
2113+
# 51| ValueCategory = prvalue
2114+
# 51| getQualifier(): [ReuseExpr] reuse of temporary object
2115+
# 51| Type = [Class] ClassWithDestructor2
2116+
# 51| ValueCategory = xvalue
2117+
# 51| getImplicitDestructorCall(2): [DestructorCall] call to ~ClassWithDestructor2
2118+
# 51| Type = [VoidType] void
2119+
# 51| ValueCategory = prvalue
2120+
# 51| getQualifier(): [ReuseExpr] reuse of temporary object
2121+
# 51| Type = [Class] ClassWithDestructor2
2122+
# 51| ValueCategory = xvalue
20992123
# 52| getStmt(2): [ReturnStmt] return ...
21002124
# 52| getImplicitDestructorCall(0): [DestructorCall] call to ~ClassWithDestructor2
21012125
# 52| Type = [VoidType] void
@@ -2143,6 +2167,24 @@ destructors_for_temps.cpp:
21432167
# 55| getExpr().getFullyConverted(): [TemporaryObjectExpr] temporary object
21442168
# 55| Type = [Class] ClassWithDestructor2
21452169
# 55| ValueCategory = prvalue
2170+
# 55| getImplicitDestructorCall(0): [DestructorCall] call to ~ClassWithDestructor2
2171+
# 55| Type = [VoidType] void
2172+
# 55| ValueCategory = prvalue
2173+
# 55| getQualifier(): [ReuseExpr] reuse of temporary object
2174+
# 55| Type = [Class] ClassWithDestructor2
2175+
# 55| ValueCategory = xvalue
2176+
# 55| getImplicitDestructorCall(1): [DestructorCall] call to ~ClassWithDestructor2
2177+
# 55| Type = [VoidType] void
2178+
# 55| ValueCategory = prvalue
2179+
# 55| getQualifier(): [ReuseExpr] reuse of temporary object
2180+
# 55| Type = [Class] ClassWithDestructor2
2181+
# 55| ValueCategory = xvalue
2182+
# 55| getImplicitDestructorCall(2): [DestructorCall] call to ~ClassWithDestructor2
2183+
# 55| Type = [VoidType] void
2184+
# 55| ValueCategory = prvalue
2185+
# 55| getQualifier(): [ReuseExpr] reuse of temporary object
2186+
# 55| Type = [Class] ClassWithDestructor2
2187+
# 55| ValueCategory = xvalue
21462188
# 56| getStmt(1): [ReturnStmt] return ...
21472189
# 58| [TopLevelFunction] void temp_test8_simple(bool)
21482190
# 58| <params>:
@@ -2246,6 +2288,12 @@ destructors_for_temps.cpp:
22462288
# 78| getExpr().getFullyConverted(): [TemporaryObjectExpr] temporary object
22472289
# 78| Type = [Class] ClassWithDestructor2
22482290
# 78| ValueCategory = prvalue
2291+
# 78| getImplicitDestructorCall(0): [DestructorCall] call to ~ClassWithDestructor2
2292+
# 78| Type = [VoidType] void
2293+
# 78| ValueCategory = prvalue
2294+
# 78| getQualifier(): [ReuseExpr] reuse of temporary object
2295+
# 78| Type = [Class] ClassWithDestructor2
2296+
# 78| ValueCategory = xvalue
22492297
# 79| getStmt(1): [ReturnStmt] return ...
22502298
# 81| [TopLevelFunction] void temp_test10(int)
22512299
# 81| <params>:
@@ -2271,6 +2319,12 @@ destructors_for_temps.cpp:
22712319
# 83| getExpr().getFullyConverted(): [TemporaryObjectExpr] temporary object
22722320
# 83| Type = [Class] ClassWithDestructor2
22732321
# 83| ValueCategory = prvalue
2322+
# 83| getImplicitDestructorCall(0): [DestructorCall] call to ~ClassWithDestructor2
2323+
# 83| Type = [VoidType] void
2324+
# 83| ValueCategory = prvalue
2325+
# 83| getQualifier(): [ReuseExpr] reuse of temporary object
2326+
# 83| Type = [Class] ClassWithDestructor2
2327+
# 83| ValueCategory = xvalue
22742328
# 85| getStmt(1): [ReturnStmt] return ...
22752329
ir.c:
22762330
# 5| [TopLevelFunction] int getX(MyCoords*)
@@ -12061,6 +12115,12 @@ ir.cpp:
1206112115
# 1425| getExpr().getFullyConverted(): [TemporaryObjectExpr] temporary object
1206212116
# 1425| Type = [Struct] String
1206312117
# 1425| ValueCategory = prvalue
12118+
# 1425| getImplicitDestructorCall(0): [DestructorCall] call to ~String
12119+
# 1425| Type = [VoidType] void
12120+
# 1425| ValueCategory = prvalue
12121+
# 1425| getQualifier(): [ReuseExpr] reuse of temporary object
12122+
# 1425| Type = [Struct] String
12123+
# 1425| ValueCategory = xvalue
1206412124
# 1426| getStmt(9): [ReturnStmt] return ...
1206512125
# 1426| getImplicitDestructorCall(0): [DestructorCall] call to ~String
1206612126
# 1426| Type = [VoidType] void
@@ -12174,6 +12234,12 @@ ir.cpp:
1217412234
# 1437| getExpr().getFullyConverted(): [TemporaryObjectExpr] temporary object
1217512235
# 1437| Type = [Class] destructor_only
1217612236
# 1437| ValueCategory = prvalue
12237+
# 1437| getImplicitDestructorCall(0): [DestructorCall] call to ~destructor_only
12238+
# 1437| Type = [VoidType] void
12239+
# 1437| ValueCategory = prvalue
12240+
# 1437| getQualifier(): [ReuseExpr] reuse of temporary object
12241+
# 1437| Type = [Class] destructor_only
12242+
# 1437| ValueCategory = xvalue
1217712243
# 1438| getStmt(8): [ReturnStmt] return ...
1217812244
# 1438| getImplicitDestructorCall(0): [DestructorCall] call to ~destructor_only
1217912245
# 1438| Type = [VoidType] void
@@ -18597,6 +18663,12 @@ ir.cpp:
1859718663
# 2307| getExpr(): [TemporaryObjectExpr] temporary object
1859818664
# 2307| Type = [ClassTemplateInstantiation,Struct] vector<String>
1859918665
# 2307| ValueCategory = xvalue
18666+
# 2307| getImplicitDestructorCall(0): [DestructorCall] call to ~String
18667+
# 2307| Type = [VoidType] void
18668+
# 2307| ValueCategory = prvalue
18669+
# 2307| getQualifier(): [ReuseExpr] reuse of temporary object
18670+
# 2307| Type = [Struct] String
18671+
# 2307| ValueCategory = xvalue
1860018672
# 2307| getBeginEndDeclaration(): [DeclStmt] declaration
1860118673
# 2307| getDeclarationEntry(0): [VariableDeclarationEntry] declaration of (__begin)
1860218674
# 2307| Type = [NestedTypedefType,UsingAliasTypedefType] iterator

0 commit comments

Comments
 (0)