| 1 |
RUN: rm -rf %t |
| 2 |
REQUIRES: x86-registered-target |
| 3 |
|
| 4 |
RUN: %clang_cc1 -triple=x86_64-linux-gnu -fmodules-codegen -x c++ -fmodules -emit-module -fmodule-name=foo %S/Inputs/codegen-flags/foo.modulemap -o %t/foo-cg.pcm |
| 5 |
RUN: %clang_cc1 -triple=x86_64-linux-gnu -fmodules-debuginfo -x c++ -fmodules -emit-module -fmodule-name=foo %S/Inputs/codegen-flags/foo.modulemap -o %t/foo-di.pcm |
| 6 |
|
| 7 |
RUN: %clang_cc1 -triple x86_64-linux-gnu -emit-llvm -debug-info-kind=limited -o - %t/foo-cg.pcm | FileCheck --check-prefix=CG %s |
| 8 |
RUN: %clang_cc1 -triple x86_64-linux-gnu -emit-llvm -debug-info-kind=limited -o - %t/foo-di.pcm | FileCheck --check-prefix=DI %s |
| 9 |
|
| 10 |
RUN: %clang_cc1 -triple x86_64-linux-gnu -emit-llvm -debug-info-kind=limited -o - -fmodules -fmodule-file=%t/foo-cg.pcm %S/Inputs/codegen-flags/use.cpp | FileCheck --check-prefix=CG-USE %s |
| 11 |
RUN: %clang_cc1 -triple x86_64-linux-gnu -emit-llvm -debug-info-kind=limited -o - -fmodules -fmodule-file=%t/foo-di.pcm %S/Inputs/codegen-flags/use.cpp | FileCheck --check-prefix=DI-USE %s |
| 12 |
|
| 13 |
CG: define weak_odr void @_Z2f1v |
| 14 |
CG: DICompileUnit |
| 15 |
CG-NOT: DICompositeType |
| 16 |
|
| 17 |
CG-USE: declare void @_Z2f1v |
| 18 |
CG-USE: DICompileUnit |
| 19 |
CG-USE: distinct !DICompositeType(tag: DW_TAG_structure_type, name: "foo" |
| 20 |
|
| 21 |
DI-NOT: define |
| 22 |
DI: distinct !DICompositeType(tag: DW_TAG_structure_type, name: "foo" |
| 23 |
|
| 24 |
DI-USE: define linkonce_odr void @_Z2f1v |
| 25 |
DI-USE: = !DICompositeType(tag: DW_TAG_structure_type, name: "foo", {{.*}}, flags: DIFlagFwdDecl |