Slightly modify some tests as follow up to bcf66084, which breaks tests.
authorAmy Huang <akhuang@google.com>
Tue, 7 Apr 2020 16:24:18 +0000 (09:24 -0700)
committerAmy Huang <akhuang@google.com>
Tue, 7 Apr 2020 16:25:16 +0000 (09:25 -0700)
The change in bcf6604 added a debug info flag, which caused some tests
to fail; I removed some commas so that the test matching still works.

clang/test/Modules/ExtDebugInfo.cpp
clang/test/Modules/ModuleDebugInfo.cpp

index a66c678..6781810 100644 (file)
@@ -77,7 +77,7 @@ void foo() {
 
 // CHECK: !DICompositeType(tag: DW_TAG_enumeration_type, name: "Enum",
 // CHECK-SAME:             scope: ![[NS:[0-9]+]],
-// CHECK-SAME:             flags: DIFlagFwdDecl,
+// CHECK-SAME:             flags: DIFlagFwdDecl
 // CHECK-SAME:             identifier:  "_ZTSN8DebugCXX4EnumE")
 
 // CHECK: ![[NS]] = !DINamespace(name: "DebugCXX", scope: ![[MOD:[0-9]+]])
@@ -94,7 +94,7 @@ void foo() {
 // CHECK: !DICompositeType(tag: DW_TAG_class_type,
 // CHECK-SAME:             name: "Template<int, DebugCXX::traits<int>>",
 // CHECK-SAME:             scope: ![[NS]],
-// CHECK-SAME:             flags: DIFlagFwdDecl,
+// CHECK-SAME:             flags: DIFlagFwdDecl
 // CHECK-SAME:             identifier: "_ZTSN8DebugCXX8TemplateIiNS_6traitsIiEEEE")
 
 // This type isn't, however, even with standalone non-module debug info this
@@ -111,7 +111,7 @@ void foo() {
 
 // This type is anchored in the module by an explicit template instantiation.
 // CHECK: !DICompositeType(tag: DW_TAG_structure_type, name: "traits<float>",
-// CHECK-SAME:             flags: DIFlagFwdDecl,
+// CHECK-SAME:             flags: DIFlagFwdDecl
 // CHECK-SAME:             identifier: "_ZTSN8DebugCXX6traitsIfEE")
 
 
@@ -127,11 +127,11 @@ void foo() {
 
 // CHECK: ![[STRUCT]] = !DICompositeType(tag: DW_TAG_structure_type, name: "Struct",
 // CHECK-SAME:             scope: ![[NS]],
-// CHECK-SAME:             flags: DIFlagFwdDecl,
+// CHECK-SAME:             flags: DIFlagFwdDecl
 // CHECK-SAME:             identifier: "_ZTSN8DebugCXX6StructE")
 
 // CHECK: !DICompositeType(tag: DW_TAG_union_type,
-// CHECK-SAME:             flags: DIFlagFwdDecl,
+// CHECK-SAME:             flags: DIFlagFwdDecl
 // CHECK-SAME:             identifier: "_ZTS12TypedefUnion")
 // CHECK: !DICompositeType(tag: DW_TAG_enumeration_type,
 // CHECK-SAME:             flags: DIFlagFwdDecl,
@@ -214,8 +214,9 @@ void foo() {
 // CHECK-PCH:                dwoId: 18446744073709551614
 
 // CHECK: !DICompositeType(tag: DW_TAG_class_type, name: "A",
-// CHECK-SAME:             DIFlagFwdDecl)
+// CHECK-SAME:             DIFlagFwdDecl
 
 // There is a full definition of the type available in the module.
 // CHECK: !DICompositeType(tag: DW_TAG_structure_type, name: "Virtual",
-// CHECK-SAME:             DIFlagFwdDecl, identifier: "_ZTS7Virtual")
+// CHECK-SAME:             DIFlagFwdDecl
+// CHECK-SAME:             identifier: "_ZTS7Virtual")
index c361053..26369c8 100644 (file)
 // CHECK-SAME:           baseType: ![[BASE:.*]])
 // CHECK: ![[BASE]] = !DICompositeType(tag: DW_TAG_class_type,
 // CHECK-SAME:                         name: "Template1<void *>",
-// CHECK-SAME:                         flags: DIFlagFwdDecl,
+// CHECK-SAME:                         flags: DIFlagFwdDecl
 // CHECK-SAME:                         identifier: "_ZTS9Template1IPvE")
 
 // Explicit instantiation.
 // CHECK-SAME:           baseType: ![[SPECIALIZEDBASE:.*]])
 // CHECK: ![[SPECIALIZEDBASE]] = !DICompositeType(tag: DW_TAG_class_type,
 // CHECK-SAME:                             name: "WithSpecializedBase<float>",
-// CHECK-SAME:                             flags: DIFlagFwdDecl,
+// CHECK-SAME:                             flags: DIFlagFwdDecl
 
 // CHECK-MOD: !DIImportedEntity(tag: DW_TAG_imported_declaration, scope: ![[DEBUGCXX]],
 // CHECK-MOD-SAME:              entity: ![[DUMMY:[0-9]+]],