From 835e6633abda36f51ce9ee47696649bc0f0cf99e Mon Sep 17 00:00:00 2001 From: Adrian Prantl Date: Thu, 24 Sep 2015 16:10:10 +0000 Subject: Module Debugging: Emit submodules as nested DW_TAG_modules. llvm-svn: 248511 --- clang/test/Modules/DebugInfoSubmoduleImport.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 clang/test/Modules/DebugInfoSubmoduleImport.c (limited to 'clang/test/Modules/DebugInfoSubmoduleImport.c') diff --git a/clang/test/Modules/DebugInfoSubmoduleImport.c b/clang/test/Modules/DebugInfoSubmoduleImport.c new file mode 100644 index 00000000000..d5be3ca1462 --- /dev/null +++ b/clang/test/Modules/DebugInfoSubmoduleImport.c @@ -0,0 +1,15 @@ +// RUN: rm -rf %t +// RUN: %clang_cc1 -fmodules -fmodule-format=obj -g -dwarf-ext-refs \ +// RUN: -fimplicit-module-maps -x c -fmodules-cache-path=%t -I %S/Inputs \ +// RUN: %s -emit-llvm -o - | FileCheck %s +#include "DebugSubmoduleA.h" +#include "DebugSubmoduleB.h" + +// CHECK: !DICompileUnit +// CHECK-NOT: !DICompileUnit +// CHECK: !DIModule(scope: ![[PARENT:.*]], name: "DebugSubmoduleA" +// CHECK: [[PARENT]] = !DIModule(scope: null, name: "DebugSubmodules" +// CHECK: !DIModule(scope: ![[PARENT]], name: "DebugSubmoduleB" +// CHECK: !DICompileUnit({{.*}}splitDebugFilename: {{.*}}DebugSubmodules +// CHECK-SAME: dwoId: +// CHECK-NOT: !DICompileUnit -- cgit v1.2.3