Adrian Prantl | 9402cef | 2015-09-20 16:51:35 +0000 | [diff] [blame] | 1 | // RUN: rm -rf %t |
| 2 | // RUN: %clang_cc1 -fmodules -fmodule-format=obj -g -dwarf-ext-refs \ |
| 3 | // RUN: -fimplicit-module-maps -x c -fmodules-cache-path=%t -I %S/Inputs \ |
Adrian Prantl | 835e663 | 2015-09-24 16:10:10 +0000 | [diff] [blame^] | 4 | // RUN: %s -mllvm -debug-only=pchcontainer -emit-llvm -o %t.ll \ |
| 5 | // RUN: 2>&1 | FileCheck %s |
NAKAMURA Takumi | 2fbdb68 | 2015-09-21 06:57:36 +0000 | [diff] [blame] | 6 | // REQUIRES: asserts |
Adrian Prantl | 9402cef | 2015-09-20 16:51:35 +0000 | [diff] [blame] | 7 | #include "DebugSubmoduleA.h" |
| 8 | |
| 9 | // CHECK: !DICompositeType(tag: DW_TAG_structure_type, name: "A", |
| 10 | // CHECK-SAME: scope: ![[SUBMODULEA:[0-9]+]] |
Adrian Prantl | 835e663 | 2015-09-24 16:10:10 +0000 | [diff] [blame^] | 11 | // CHECK: ![[SUBMODULEA]] = !DIModule(scope: ![[PARENT:[0-9]+]], |
| 12 | // CHECK-SAME: name: "DebugSubmoduleA", |
| 13 | // CHECK: ![[PARENT]] = !DIModule(scope: null, name: "DebugSubmodules" |
Adrian Prantl | 9402cef | 2015-09-20 16:51:35 +0000 | [diff] [blame] | 14 | |
| 15 | // CHECK: !DICompositeType(tag: DW_TAG_structure_type, name: "B", |
| 16 | // CHECK-SAME: scope: ![[SUBMODULEB:[0-9]+]] |
Adrian Prantl | 835e663 | 2015-09-24 16:10:10 +0000 | [diff] [blame^] | 17 | // CHECK: ![[SUBMODULEB]] = !DIModule(scope: ![[PARENT]], |
| 18 | // CHECK-SAME: name: "DebugSubmoduleB", |