blob: 1f12b0270be4a063a2d62355715083529a87be4c [file] [log] [blame]
Adrian Prantlc4bb47e2015-06-30 17:39:51 +00001// RUN: rm -rf %t
2// 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
3
Adrian Prantl324c03f2015-06-30 18:32:50 +00004// CHECK: ![[CU:.*]] = distinct !DICompileUnit
Adrian Prantlc4bb47e2015-06-30 17:39:51 +00005@import DebugModule;
6// CHECK: !DIImportedEntity(tag: DW_TAG_imported_declaration, scope: ![[CU]], entity: ![[MODULE:.*]], line: 5)
Adrian Prantld9f09852015-06-30 18:05:46 +00007// CHECK: ![[MODULE]] = !DIModule(scope: null, name: "DebugModule", configMacros: "\22-DGREETING=Hello World\22 \22-UNDEBUG\22", includePath: "{{.*}}test{{.*}}Modules{{.*}}Inputs", isysroot: "/tmp/..")