Skip to content

Commit b776cbe

Browse files
authored
Merge pull request github#15597 from jketema/destructors2
C++: Update test results of `constexpr if` destructors
2 parents fd1314b + f3e55a4 commit b776cbe

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16337,6 +16337,12 @@ ir.cpp:
1633716337
# 2141| Type = [PlainCharType] char
1633816338
# 2141| Value = [CharLiteral] 97
1633916339
# 2141| ValueCategory = prvalue
16340+
# 2141| getImplicitDestructorCall(0): [DestructorCall] call to ~ClassWithDestructor
16341+
# 2141| Type = [VoidType] void
16342+
# 2141| ValueCategory = prvalue
16343+
# 2141| getQualifier(): [VariableAccess] x
16344+
# 2141| Type = [Class] ClassWithDestructor
16345+
# 2141| ValueCategory = lvalue
1634016346
# 2143| getStmt(2): [SwitchStmt] switch (...) ...
1634116347
# 2143| getInitialization(): [DeclStmt] declaration
1634216348
# 2143| getDeclarationEntry(0): [VariableDeclarationEntry] definition of x

0 commit comments

Comments
 (0)