8
8
// RUN: -fmodule-format=obj -fimplicit-module-maps -DMODULES \
9
9
// RUN: -triple %itanium_abi_triple \
10
10
// RUN: -fmodules-cache-path=%t %s -I %S/Inputs -I %t -emit-llvm -o %t-mod.ll
11
- // RUN: cat %t-mod.ll | FileCheck %s
11
+ // RUN: cat %t-mod.ll | FileCheck %s --check-prefix=CHECK %if target={{.*-(win|mingw|cyg).*}} %{--check-prefix=CHECKCOFF%} %else %{--check-prefix=CHECKELF%}
12
12
13
13
// PCH:
14
14
// RUN: %clang_cc1 -x c++ -std=c++11 -fmodule-format=obj -emit-pch -I%S/Inputs \
18
18
// RUN: -dwarf-ext-refs -fmodule-format=obj \
19
19
// RUN: -triple %itanium_abi_triple \
20
20
// RUN: -include-pch %t.pch %s -emit-llvm -o %t-pch.ll
21
- // RUN: cat %t-pch.ll | FileCheck %s
21
+ // RUN: cat %t-pch.ll | FileCheck %s --check-prefix=CHECK %if target={{.*-(win|mingw|cyg).*}} %{--check-prefix=CHECKCOFF%} %else %{--check-prefix=CHECKELF%}
22
22
// RUN: cat %t-pch.ll | FileCheck %s --check-prefix=CHECK-PCH
23
23
24
24
#ifdef MODULES
@@ -208,9 +208,9 @@ void foo() {
208
208
// CHECK-SAME: name: "InAnonymousNamespace", {{.*}}DIFlagFwdDecl)
209
209
210
210
// There is a full definition of the type available in the module.
211
- // CHECK : !DICompositeType(tag: DW_TAG_structure_type, name: "Virtual",
212
- // CHECK -SAME: DIFlagFwdDecl
213
- // CHECK -SAME: identifier: "_ZTS7Virtual")
211
+ // CHECKELF : !DICompositeType(tag: DW_TAG_structure_type, name: "Virtual",
212
+ // CHECKELF -SAME: DIFlagFwdDecl
213
+ // CHECKELF -SAME: identifier: "_ZTS7Virtual")
214
214
215
215
// CHECK: !DIImportedEntity(tag: DW_TAG_imported_declaration, scope: !{{[0-9]+}}, entity: ![[STRUCT]], file: ![[CPP]], line: 50)
216
216
@@ -222,3 +222,8 @@ void foo() {
222
222
223
223
// CHECK: !DICompositeType(tag: DW_TAG_class_type, name: "A",
224
224
// CHECK-SAME: DIFlagFwdDecl
225
+
226
+ // There is a full definition of the type available in the module.
227
+ // CHECKCOFF: !DICompositeType(tag: DW_TAG_structure_type, name: "Virtual",
228
+ // CHECKCOFF-SAME: DIFlagFwdDecl
229
+ // CHECKCOFF-SAME: identifier: "_ZTS7Virtual")
0 commit comments