diff options
Diffstat (limited to 'clang/test/Modules')
-rw-r--r-- | clang/test/Modules/modules-merge-enum.m | 24 | ||||
-rw-r--r-- | clang/test/Modules/odr_hash.cpp | 12 | ||||
-rw-r--r-- | clang/test/Modules/pr97313.cppm | 2 |
3 files changed, 17 insertions, 21 deletions
diff --git a/clang/test/Modules/modules-merge-enum.m b/clang/test/Modules/modules-merge-enum.m index f1010c1..fc07c46 100644 --- a/clang/test/Modules/modules-merge-enum.m +++ b/clang/test/Modules/modules-merge-enum.m @@ -18,9 +18,8 @@ typedef enum MyEnum1 { MyVal_A } MyEnum1; // CHECK-NEXT: | |-also in ModB // CHECK-NEXT: | `-EnumConstantDecl 0x{{.*}} imported in ModA.ModAFile1 referenced MyVal_A 'int' // CHECK-NEXT: |-TypedefDecl 0x{{.*}} imported in ModA.ModAFile1 hidden MyEnum1 'enum MyEnum1' -// CHECK-NEXT: | `-ElaboratedType 0x{{.*}} 'enum MyEnum1' sugar imported -// CHECK-NEXT: | `-EnumType 0x{{.*}} 'enum MyEnum1' imported -// CHECK-NEXT: | `-Enum 0x{{.*}} 'MyEnum1' +// CHECK-NEXT: | `-EnumType 0x{{.*}} 'enum MyEnum1' imported +// CHECK-NEXT: | `-Enum 0x{{.*}} 'MyEnum1' enum MyEnum2 { MyVal_B }; @@ -33,10 +32,9 @@ typedef enum { MyVal_C } MyEnum3; // CHECK: |-EnumDecl 0x{{.*}} imported in ModA.ModAFile1 <undeserialized declarations> // CHECK-NEXT: | |-also in ModB // CHECK-NEXT: | `-EnumConstantDecl 0x{{.*}} imported in ModA.ModAFile1 referenced MyVal_C 'int' -// CHECK-NEXT: |-TypedefDecl 0x{{.*}} imported in ModA.ModAFile1 hidden MyEnum3 'enum MyEnum3':'MyEnum3' -// CHECK-NEXT: | `-ElaboratedType 0x{{.*}} 'enum MyEnum3' sugar imported -// CHECK-NEXT: | `-EnumType 0x{{.*}} 'MyEnum3' imported -// CHECK-NEXT: | `-Enum 0x{{.*}} +// CHECK-NEXT: |-TypedefDecl 0x{{.*}} imported in ModA.ModAFile1 hidden MyEnum3 'enum MyEnum3' +// CHECK-NEXT: | `-EnumType 0x{{.*}} 'enum MyEnum3' imported +// CHECK-NEXT: | `-Enum 0x{{.*}} struct MyStruct { enum MyEnum5 { MyVal_D } Field; @@ -57,17 +55,15 @@ enum { MyVal_E }; // Redeclarations coming from ModB. // CHECK: |-TypedefDecl 0x{{.*}} prev 0x{{.*}} imported in ModB MyEnum1 'enum MyEnum1' -// CHECK-NEXT: | `-ElaboratedType 0x{{.*}} 'enum MyEnum1' sugar imported -// CHECK-NEXT: | `-EnumType 0x{{.*}} 'enum MyEnum1' imported -// CHECK-NEXT: | `-Enum 0x{{.*}} 'MyEnum1' +// CHECK-NEXT: | `-EnumType 0x{{.*}} 'enum MyEnum1' imported +// CHECK-NEXT: | `-Enum 0x{{.*}} 'MyEnum1' // CHECK: |-EnumDecl 0x{{.*}} prev 0x{{.*}} imported in ModB <undeserialized declarations> // CHECK-NEXT: | |-also in ModB // CHECK-NEXT: | `-EnumConstantDecl 0x{{.*}} imported in ModB MyVal_C 'int' -// CHECK-NEXT: |-TypedefDecl 0x{{.*}} prev 0x{{.*}} imported in ModB MyEnum3 'enum MyEnum3':'MyEnum3' -// CHECK-NEXT: | `-ElaboratedType 0x{{.*}} 'enum MyEnum3' sugar imported -// CHECK-NEXT: | `-EnumType 0x{{.*}} 'MyEnum3' imported -// CHECK-NEXT: | `-Enum 0x{{.*}} +// CHECK-NEXT: |-TypedefDecl 0x{{.*}} prev 0x{{.*}} imported in ModB MyEnum3 'enum MyEnum3' +// CHECK-NEXT: | `-EnumType 0x{{.*}} 'enum MyEnum3' imported +// CHECK-NEXT: | `-Enum 0x{{.*}} // CHECK: |-EnumDecl 0x{{.*}} imported in ModB <undeserialized declarations> // CHECK-NEXT: | `-EnumConstantDecl 0x{{.*}} first 0x{{.*}} imported in ModB referenced MyVal_E 'int' diff --git a/clang/test/Modules/odr_hash.cpp b/clang/test/Modules/odr_hash.cpp index 8ef53e3..f22f3c7 100644 --- a/clang/test/Modules/odr_hash.cpp +++ b/clang/test/Modules/odr_hash.cpp @@ -1314,7 +1314,7 @@ class S1 { #else template<class T> using U1 = S1<T>; -// expected-error@first.h:* {{'DependentType::S1::x' from module 'FirstModule' is not present in definition of 'S1<T>' in module 'SecondModule'}} +// expected-error@first.h:* {{'DependentType::S1::x' from module 'FirstModule' is not present in definition of 'DependentType::S1<T>' in module 'SecondModule'}} // expected-note@second.h:* {{declaration of 'x' does not match}} #endif @@ -2343,7 +2343,7 @@ struct S1 { }; #else using TemplateTypeParmType::S1; -// expected-error@first.h:* {{'TemplateTypeParmType::S1::x' from module 'FirstModule' is not present in definition of 'S1<T1, T2>' in module 'SecondModule'}} +// expected-error@first.h:* {{'TemplateTypeParmType::S1::x' from module 'FirstModule' is not present in definition of 'TemplateTypeParmType::S1<T1, T2>' in module 'SecondModule'}} // expected-note@second.h:* {{declaration of 'x' does not match}} #endif @@ -2365,9 +2365,9 @@ class S2 { }; #else using TemplateTypeParmType::S2; -// expected-error@first.h:* {{'TemplateTypeParmType::S2::x' from module 'FirstModule' is not present in definition of 'S2<T, U>' in module 'SecondModule'}} +// expected-error@first.h:* {{'TemplateTypeParmType::S2::x' from module 'FirstModule' is not present in definition of 'TemplateTypeParmType::S2<T, U>' in module 'SecondModule'}} // expected-note@second.h:* {{declaration of 'x' does not match}} -// expected-error@first.h:* {{'TemplateTypeParmType::S2::type' from module 'FirstModule' is not present in definition of 'S2<T, U>' in module 'SecondModule'}} +// expected-error@first.h:* {{'TemplateTypeParmType::S2::type' from module 'FirstModule' is not present in definition of 'TemplateTypeParmType::S2<T, U>' in module 'SecondModule'}} // expected-note@second.h:* {{declaration of 'type' does not match}} #endif @@ -4020,7 +4020,7 @@ struct Valid { }; #else Invalid::L2<1>::L3<1> invalid; -// expected-error@second.h:* {{'Types::InjectedClassName::Invalid::L2::L3::x' from module 'SecondModule' is not present in definition of 'L3<value-parameter-1-0>' in module 'FirstModule'}} +// expected-error@second.h:* {{'Types::InjectedClassName::Invalid::L2::L3::x' from module 'SecondModule' is not present in definition of 'Types::InjectedClassName::Invalid::L2::L3<value-parameter-1-0>' in module 'FirstModule'}} // expected-note@first.h:* {{declaration of 'x' does not match}} Valid::L2<1>::L3<1> valid; #endif @@ -4291,7 +4291,7 @@ struct Valid { }; #else template <class T> using I = Invalid<T>; -// expected-error@first.h:* {{'Types::UnresolvedUsing::Invalid::x' from module 'FirstModule' is not present in definition of 'Invalid<T>' in module 'SecondModule'}} +// expected-error@first.h:* {{'Types::UnresolvedUsing::Invalid::x' from module 'FirstModule' is not present in definition of 'Types::UnresolvedUsing::Invalid<T>' in module 'SecondModule'}} // expected-note@second.h:* {{declaration of 'x' does not match}} template <class T> using V = Valid<T>; diff --git a/clang/test/Modules/pr97313.cppm b/clang/test/Modules/pr97313.cppm index 32c7112..99795d6 100644 --- a/clang/test/Modules/pr97313.cppm +++ b/clang/test/Modules/pr97313.cppm @@ -1,4 +1,4 @@ -// REQUIRES: !system-windows +// REQUIRES: !system-windows, !system-cygwin // // RUN: rm -rf %t // RUN: mkdir -p %t |