Remove elaborated keyword from output checks

LLVM 16 honors how the declarations were written, without the class
or struct keywords.
This commit is contained in:
Jonas Hahnfeld 2023-08-08 13:38:26 +02:00 committed by jenkins
parent fc12e238fc
commit 5fda6d38d2
3 changed files with 5 additions and 5 deletions

View File

@ -47,7 +47,7 @@ struct MyStruct { unsigned u; };
MyStruct{1111U}.u
//CHECK-NEXT: (unsigned int) 1111
struct MyStruct { int i, j; } foo{33, 0}
//CHECK-NEXT: (struct MyStruct &)
//CHECK-NEXT: (MyStruct &)
foo.i
//CHECK-NEXT: (int) 33
struct MyStruct; // nop

View File

@ -12,7 +12,7 @@
extern "C" int printf(const char*,...);
class TestDecl { public: int methodDefLater(); } t
// CHECK: (class TestDecl &) @0x{{.*}}
// CHECK: (TestDecl &) @0x{{.*}}
int TestDecl::methodDefLater() { return 2; }
t.methodDefLater()
// CHECK: (int) 2
@ -260,11 +260,11 @@ Nest2.simpleAdd(3)
class Test2 classReturn() { return Test2(10, 11); }
classReturn()
// CHECK: Test2::Test2(10,11)
// CHECK: (class Test2) @0x{{.*}}
// CHECK: (Test2) @0x{{.*}}
class Test2* classReturnPtr() { return nullptr; }
classReturnPtr()
// CHECK: (class Test2 *) nullptr
// CHECK: (Test2 *) nullptr
int Ref = 42;
const int& cIntRef(const int &val) {

View File

@ -14,7 +14,7 @@ const char* b = "b" // CHECK: (const char *) "b"
const char* n = 0 // CHECK: (const char *) nullptr
struct C {int d;} E = {22};
E // CHECK: (struct C &) @0x{{[0-9A-Fa-f]{5,12}.}}
E // CHECK: (C &) @0x{{[0-9A-Fa-f]{5,12}.}}
E.d // CHECK: (int) 22
#include <string>