diff options
Diffstat (limited to 'clang/test')
| -rw-r--r-- | clang/test/Modules/Inputs/DebugModule.h | 1 | ||||
| -rw-r--r-- | clang/test/Modules/Inputs/module.map | 5 | ||||
| -rw-r--r-- | clang/test/Modules/debug-info-moduleimport.m | 7 |
3 files changed, 13 insertions, 0 deletions
diff --git a/clang/test/Modules/Inputs/DebugModule.h b/clang/test/Modules/Inputs/DebugModule.h new file mode 100644 index 00000000000..5612b73a8cf --- /dev/null +++ b/clang/test/Modules/Inputs/DebugModule.h @@ -0,0 +1 @@ +@class F; diff --git a/clang/test/Modules/Inputs/module.map b/clang/test/Modules/Inputs/module.map index fe762f54a11..b9c8e72cfa9 100644 --- a/clang/test/Modules/Inputs/module.map +++ b/clang/test/Modules/Inputs/module.map @@ -327,3 +327,8 @@ module recursive2 { module crash { header "crash.h" } + +module DebugModule { + header "DebugModule.h" +} + diff --git a/clang/test/Modules/debug-info-moduleimport.m b/clang/test/Modules/debug-info-moduleimport.m new file mode 100644 index 00000000000..9580af08498 --- /dev/null +++ b/clang/test/Modules/debug-info-moduleimport.m @@ -0,0 +1,7 @@ +// RUN: rm -rf %t +// RUN: %clang_cc1 -g -fmodules -DGREETING="Hello World" -UNDEBUG -fimplicit-module-maps -fmodules-cache-path=%t %s -I %S/Inputs -isysroot /tmp/.. -I %t -emit-llvm -o - | FileCheck %s + +// CHECK: ![[CU:.*]] = !DICompileUnit +@import DebugModule; +// CHECK: !DIImportedEntity(tag: DW_TAG_imported_declaration, scope: ![[CU]], entity: ![[MODULE:.*]], line: 5) +// CHECK: ![[MODULE]] = !DIModule(scope: null, name: "DebugModule", configMacros: "\22-DGREETING=Hello World\22 \22-UNDEBUG\22", includePath: "{{.*}}/test/Modules/Inputs", isysroot: "/tmp/..") |

