From d47e2690b89f69e540e5f1c1f39e558c75af22d4 Mon Sep 17 00:00:00 2001 From: Jeroen Ketema Date: Mon, 18 Mar 2024 16:14:03 +0100 Subject: [PATCH] C++: Update test results after extractor changes --- .../test/library-tests/ir/ir/PrintAST.expected | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/cpp/ql/test/library-tests/ir/ir/PrintAST.expected b/cpp/ql/test/library-tests/ir/ir/PrintAST.expected index 87179ad8bf8..669ec52376f 100644 --- a/cpp/ql/test/library-tests/ir/ir/PrintAST.expected +++ b/cpp/ql/test/library-tests/ir/ir/PrintAST.expected @@ -1781,6 +1781,12 @@ destructors_for_temps.cpp: # 15| getQualifier(): [ConstructorCall] call to ClassWithDestructor2 # 15| Type = [VoidType] void # 15| ValueCategory = prvalue +# 15| getImplicitDestructorCall(0): [DestructorCall] call to ~ClassWithDestructor2 +# 15| Type = [VoidType] void +# 15| ValueCategory = prvalue +# 15| getQualifier(): [ReuseExpr] reuse of temporary object +# 15| Type = [Class] ClassWithDestructor2 +# 15| ValueCategory = xvalue # 15| getQualifier().getFullyConverted(): [TemporaryObjectExpr] temporary object # 15| Type = [Class] ClassWithDestructor2 # 15| ValueCategory = prvalue(load) @@ -1804,6 +1810,12 @@ destructors_for_temps.cpp: # 16| getQualifier().getFullyConverted(): [TemporaryObjectExpr] temporary object # 16| Type = [Class] ClassWithDestructor2 # 16| ValueCategory = prvalue(load) +# 16| getImplicitDestructorCall(0): [DestructorCall] call to ~ClassWithDestructor2 +# 16| Type = [VoidType] void +# 16| ValueCategory = prvalue +# 16| getQualifier(): [ReuseExpr] reuse of temporary object +# 16| Type = [Class] ClassWithDestructor2 +# 16| ValueCategory = xvalue # 17| getStmt(2): [ReturnStmt] return ... # 17| getExpr(): [FunctionCall] call to get_x # 17| Type = [PlainCharType] char @@ -18145,6 +18157,12 @@ ir.cpp: # 2293| getArgument(0).getFullyConverted(): [ArrayToPointerConversion] array to pointer conversion # 2293| Type = [PointerType] const char * # 2293| ValueCategory = prvalue +# 2293| getImplicitDestructorCall(0): [DestructorCall] call to ~String +# 2293| Type = [VoidType] void +# 2293| ValueCategory = prvalue +# 2293| getQualifier(): [ReuseExpr] reuse of temporary object +# 2293| Type = [Struct] String +# 2293| ValueCategory = xvalue # 2293| getArgument(0).getFullyConverted(): [TemporaryObjectExpr] temporary object # 2293| Type = [Struct] String # 2293| ValueCategory = lvalue