mirror of
https://github.com/github/codeql.git
synced 2026-05-02 04:05:14 +02:00
C++: Update expected test results
This commit is contained in:
@@ -67,31 +67,7 @@ bad_asts.cpp:
|
||||
# 5| params:
|
||||
#-----| 0: [Parameter] p#0
|
||||
#-----| Type = [RValueReferenceType] S &&
|
||||
# 9| [MemberFunction] int Bad::S::MemberFunction(int)
|
||||
# 9| params:
|
||||
# 9| 0: [Parameter] y
|
||||
# 9| Type = [IntType] int
|
||||
# 9| body: [Block] { ... }
|
||||
# 10| 0: [ReturnStmt] return ...
|
||||
# 10| 0: [AddExpr] ... + ...
|
||||
# 10| Type = [IntType] int
|
||||
# 10| ValueCategory = prvalue
|
||||
# 10| 0: [AddExpr] ... + ...
|
||||
# 10| Type = [IntType] int
|
||||
# 10| ValueCategory = prvalue
|
||||
# 10| 0: [Literal] Unknown literal
|
||||
# 10| Type = [IntType] int
|
||||
# 10| ValueCategory = prvalue
|
||||
# 10| 1: [PointerFieldAccess] x
|
||||
# 10| Type = [IntType] int
|
||||
# 10| ValueCategory = prvalue(load)
|
||||
#-----| -1: [ThisExpr] this
|
||||
#-----| Type = [PointerType] S *
|
||||
#-----| ValueCategory = prvalue(load)
|
||||
# 10| 1: [VariableAccess] y
|
||||
# 10| Type = [IntType] int
|
||||
# 10| ValueCategory = prvalue(load)
|
||||
# 9| [TopLevelFunction] int MemberFunction(int)
|
||||
# 9| [FunctionTemplateInstantiation,MemberFunction] int Bad::S::MemberFunction<int>(int)
|
||||
# 9| params:
|
||||
# 9| 0: [Parameter] y
|
||||
# 9| Type = [IntType] int
|
||||
@@ -116,6 +92,30 @@ bad_asts.cpp:
|
||||
# 10| 1: [VariableAccess] y
|
||||
# 10| Type = [IntType] int
|
||||
# 10| ValueCategory = prvalue(load)
|
||||
# 9| [MemberFunction,TemplateFunction] int Bad::S::MemberFunction<int>(int)
|
||||
# 9| params:
|
||||
# 9| 0: [Parameter] y
|
||||
# 9| Type = [IntType] int
|
||||
# 9| body: [Block] { ... }
|
||||
# 10| 0: [ReturnStmt] return ...
|
||||
# 10| 0: [AddExpr] ... + ...
|
||||
# 10| Type = [IntType] int
|
||||
# 10| ValueCategory = prvalue
|
||||
# 10| 0: [AddExpr] ... + ...
|
||||
# 10| Type = [IntType] int
|
||||
# 10| ValueCategory = prvalue
|
||||
# 10| 0: [Literal] Unknown literal
|
||||
# 10| Type = [IntType] int
|
||||
# 10| ValueCategory = prvalue
|
||||
# 10| 1: [PointerFieldAccess] x
|
||||
# 10| Type = [IntType] int
|
||||
# 10| ValueCategory = prvalue(load)
|
||||
#-----| -1: [ThisExpr] this
|
||||
#-----| Type = [PointerType] S *
|
||||
#-----| ValueCategory = prvalue(load)
|
||||
# 10| 1: [VariableAccess] y
|
||||
# 10| Type = [IntType] int
|
||||
# 10| ValueCategory = prvalue(load)
|
||||
# 14| [TopLevelFunction] void Bad::CallBadMemberFunction()
|
||||
# 14| params:
|
||||
# 14| body: [Block] { ... }
|
||||
|
||||
@@ -1,4 +1,27 @@
|
||||
bad_asts.cpp:
|
||||
# 9| int Bad::S::MemberFunction<int>(int)
|
||||
# 9| Block 0
|
||||
# 9| v0_0(void) = EnterFunction :
|
||||
# 9| mu0_1(unknown) = AliasedDefinition :
|
||||
# 9| mu0_2(unknown) = UnmodeledDefinition :
|
||||
# 9| r0_3(glval<S>) = InitializeThis :
|
||||
# 9| r0_4(glval<int>) = VariableAddress[y] :
|
||||
# 9| mu0_5(int) = InitializeParameter[y] : &:r0_4
|
||||
# 10| r0_6(glval<int>) = VariableAddress[#return] :
|
||||
# 10| r0_7(int) = Constant[6] :
|
||||
#-----| r0_8(S *) = CopyValue : r0_3
|
||||
# 10| r0_9(glval<int>) = FieldAddress[x] : r0_8
|
||||
# 10| r0_10(int) = Load : &:r0_9, ~mu0_2
|
||||
# 10| r0_11(int) = Add : r0_7, r0_10
|
||||
# 10| r0_12(glval<int>) = VariableAddress[y] :
|
||||
# 10| r0_13(int) = Load : &:r0_12, ~mu0_2
|
||||
# 10| r0_14(int) = Add : r0_11, r0_13
|
||||
# 10| mu0_15(int) = Store : &:r0_6, r0_14
|
||||
# 9| r0_16(glval<int>) = VariableAddress[#return] :
|
||||
# 9| v0_17(void) = ReturnValue : &:r0_16, ~mu0_2
|
||||
# 9| v0_18(void) = UnmodeledUse : mu*
|
||||
# 9| v0_19(void) = ExitFunction :
|
||||
|
||||
# 14| void Bad::CallBadMemberFunction()
|
||||
# 14| Block 0
|
||||
# 14| v0_0(void) = EnterFunction :
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
| file://:0:0:0:0 | Unknown literal | file://:0:0:0:0 | unsigned long |
|
||||
| file://:0:0:0:0 | Unknown literal | file://:0:0:0:0 | unsigned long |
|
||||
| file://:0:0:0:0 | Unknown literal | file://:0:0:0:0 | unsigned long |
|
||||
| file://:0:0:0:0 | Unknown literal | file://:0:0:0:0 | unsigned long |
|
||||
| segfault.cpp:25:46:25:65 | call to S | file://:0:0:0:0 | void |
|
||||
| segfault.cpp:25:46:25:65 | call to S | file://:0:0:0:0 | void |
|
||||
| segfault.cpp:25:48:25:55 | __second | segfault.cpp:15:7:15:11 | tuple |
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
| file://:0:0:0:0 | __va_list_tag | <none> |
|
||||
| test.cpp:3:8:3:9 | s1<<expression>> | <none> |
|
||||
| test.cpp:3:8:3:9 | s1<<unnamed>> | <none> |
|
||||
| test.cpp:3:8:3:9 | s1<<expression>> | bool |
|
||||
| test.cpp:3:8:3:9 | s1<<unnamed>> | bool |
|
||||
| test.cpp:5:8:5:9 | s2<T> | T |
|
||||
| test.cpp:5:8:5:9 | s2<T> | T |
|
||||
| test.cpp:7:8:7:9 | s3<T, <unnamed>> | (unnamed) |
|
||||
|
||||
@@ -1,6 +1,12 @@
|
||||
| file://:0:0:0:0 | |
|
||||
| file://:0:0:0:0 | 0 |
|
||||
| file://:0:0:0:0 | (global namespace) |
|
||||
| file://:0:0:0:0 | Unknown literal |
|
||||
| file://:0:0:0:0 | Unknown literal |
|
||||
| file://:0:0:0:0 | Unknown literal |
|
||||
| file://:0:0:0:0 | Unknown literal |
|
||||
| file://:0:0:0:0 | Unknown literal |
|
||||
| file://:0:0:0:0 | Unknown literal |
|
||||
| file://:0:0:0:0 | __va_list_tag |
|
||||
| file://:0:0:0:0 | __va_list_tag & |
|
||||
| file://:0:0:0:0 | __va_list_tag && |
|
||||
|
||||
Reference in New Issue
Block a user