Skip to content

Commit ec071cd

Browse files
authored
Merge pull request github#15991 from jketema/destructors17
C++: Handle destruction of temporaries in expressions with a `thow` at the root
2 parents 8f56ede + 9300b04 commit ec071cd

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

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

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2030,7 +2030,13 @@ destructors_for_temps.cpp:
20302030
# 45| getQualifier().getFullyConverted(): [TemporaryObjectExpr] temporary object
20312031
# 45| Type = [Class] ClassWithDestructor2
20322032
# 45| ValueCategory = prvalue(load)
2033-
# 47| getImplicitDestructorCall(0): [DestructorCall] call to ~ClassWithDestructor2
2033+
# 45| getImplicitDestructorCall(0): [DestructorCall] call to ~ClassWithDestructor2
2034+
# 45| Type = [VoidType] void
2035+
# 45| ValueCategory = prvalue
2036+
# 45| getQualifier(): [ReuseExpr] reuse of temporary object
2037+
# 45| Type = [Class] ClassWithDestructor2
2038+
# 45| ValueCategory = xvalue
2039+
# 47| getImplicitDestructorCall(1): [DestructorCall] call to ~ClassWithDestructor2
20342040
# 47| Type = [VoidType] void
20352041
# 47| ValueCategory = prvalue
20362042
# 47| getQualifier(): [VariableAccess] c

0 commit comments

Comments
 (0)