@@ -4180,7 +4180,7 @@ destructors_for_temps.cpp:
41804180# 103| ValueCategory = prvalue
41814181# 104| getStmt(1): [ReturnStmt] return ...
41824182generic.c:
4183- # 1| [TopLevelFunction] void c11_generic_test (unsigned int, int)
4183+ # 1| [TopLevelFunction] void c11_generic_test_with_load (unsigned int, int)
41844184# 1| <params>:
41854185# 1| getParameter(0): [Parameter] x
41864186# 1| Type = [IntType] unsigned int
@@ -4213,6 +4213,65 @@ generic.c:
42134213# 3| Value = [CStyleCast] 1
42144214# 3| ValueCategory = prvalue
42154215# 4| getStmt(2): [ReturnStmt] return ...
4216+ # 12| [TopLevelFunction] char const* c11_generic_test_with_constant_and_macro()
4217+ # 12| <params>:
4218+ # 13| getEntryPoint(): [BlockStmt] { ... }
4219+ # 14| getStmt(0): [DeclStmt] declaration
4220+ # 14| getDeclarationEntry(0): [VariableDeclarationEntry] definition of i
4221+ # 14| Type = [IntType] int
4222+ # 16| getStmt(1): [ReturnStmt] return ...
4223+ # 16| getExpr(): int
4224+ # 16| Type = [ArrayType] char[4]
4225+ # 16| Value = [StringLiteral] "int"
4226+ # 16| ValueCategory = lvalue
4227+ # 16| getExpr().getFullyConverted(): [CStyleCast] (const char *)...
4228+ # 16| Conversion = [PointerConversion] pointer conversion
4229+ # 16| Type = [PointerType] const char *
4230+ # 16| ValueCategory = prvalue
4231+ # 16| getExpr(): [ArrayToPointerConversion] array to pointer conversion
4232+ # 16| Type = [CharPointerType] char *
4233+ # 16| ValueCategory = prvalue
4234+ # 19| [TopLevelFunction] char const* c11_generic_test_with_constant_and_no_macro()
4235+ # 19| <params>:
4236+ # 20| getEntryPoint(): [BlockStmt] { ... }
4237+ # 21| getStmt(0): [DeclStmt] declaration
4238+ # 21| getDeclarationEntry(0): [VariableDeclarationEntry] definition of i
4239+ # 21| Type = [IntType] int
4240+ # 23| getStmt(1): [ReturnStmt] return ...
4241+ # 23| getExpr(): int
4242+ # 23| Type = [ArrayType] char[4]
4243+ # 23| Value = [StringLiteral] "int"
4244+ # 23| ValueCategory = lvalue
4245+ # 23| getExpr().getFullyConverted(): [CStyleCast] (const char *)...
4246+ # 23| Conversion = [PointerConversion] pointer conversion
4247+ # 23| Type = [PointerType] const char *
4248+ # 23| ValueCategory = prvalue
4249+ # 23| getExpr(): [ArrayToPointerConversion] array to pointer conversion
4250+ # 23| Type = [CharPointerType] char *
4251+ # 23| ValueCategory = prvalue
4252+ # 26| [TopLevelFunction] void c11_generic_test_test_with_cast(int)
4253+ # 26| <params>:
4254+ # 26| getParameter(0): [Parameter] y
4255+ # 26| Type = [IntType] int
4256+ # 26| getEntryPoint(): [BlockStmt] { ... }
4257+ # 27| getStmt(0): [DeclStmt] declaration
4258+ # 27| getDeclarationEntry(0): [VariableDeclarationEntry] definition of r
4259+ # 27| Type = [IntType] unsigned int
4260+ # 28| getStmt(1): [ExprStmt] ExprStmt
4261+ # 28| getExpr(): [AssignExpr] ... = ...
4262+ # 28| Type = [IntType] unsigned int
4263+ # 28| ValueCategory = prvalue
4264+ # 28| getLValue(): [VariableAccess] r
4265+ # 28| Type = [IntType] unsigned int
4266+ # 28| ValueCategory = lvalue
4267+ # 28| getRValue(): [VariableAccess] y
4268+ # 28| Type = [IntType] int
4269+ # 28| ValueCategory = prvalue(load)
4270+ # 28| getRValue().getFullyConverted(): [CStyleCast] (unsigned int)...
4271+ # 28| Conversion = [IntegralConversion] integral conversion
4272+ # 28| Type = [IntType] unsigned int
4273+ # 28| ValueCategory = prvalue
4274+ # 29| getStmt(2): [ReturnStmt] return ...
42164275ir.c:
42174276# 5| [TopLevelFunction] int getX(MyCoords*)
42184277# 5| <params>:
0 commit comments