summaryrefslogtreecommitdiffstats
path: root/clang/test/Modules/irgen.c
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2012-01-03 19:32:59 +0000
committerDouglas Gregor <dgregor@apple.com>2012-01-03 19:32:59 +0000
commitda82e703d1d9e39fd5acdf18e06855e452c87984 (patch)
treec148834214171b1c8467de34396e2601d68d646a /clang/test/Modules/irgen.c
parentc2f91c37e83a54c649582120827a25862a10f312 (diff)
downloadbcm5719-llvm-da82e703d1d9e39fd5acdf18e06855e452c87984.tar.gz
bcm5719-llvm-da82e703d1d9e39fd5acdf18e06855e452c87984.zip
Eliminate the uglified keyword __import_module__ for importing
modules. This leaves us without an explicit syntax for importing modules in C/C++, because such a syntax needs to be discussed first. In Objective-C/Objective-C++, the @import syntax is used to import modules. Note that, under -fmodules, C/C++ programs can import modules via the #include mechanism when a module map is in place for that header. This allows us to work with modules in C/C++ without committing to a syntax. llvm-svn: 147467
Diffstat (limited to 'clang/test/Modules/irgen.c')
-rw-r--r--clang/test/Modules/irgen.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/clang/test/Modules/irgen.c b/clang/test/Modules/irgen.c
index a3d5aa0534c..8f4c299a7ef 100644
--- a/clang/test/Modules/irgen.c
+++ b/clang/test/Modules/irgen.c
@@ -1,8 +1,9 @@
// RUN: rm -rf %t
-// RUN: %clang_cc1 -fmodule-cache-path %t -emit-module -fmodule-name=irgen -triple x86_64-apple-darwin10 %S/Inputs/module.map
-// RUN: %clang_cc1 -fmodule-cache-path %t -triple x86_64-apple-darwin10 -emit-llvm -o - %s | FileCheck %s
+// RUN: %clang_cc1 -fmodules -x objective-c -fmodule-cache-path %t -emit-module -fmodule-name=irgen -triple x86_64-apple-darwin10 %S/Inputs/module.map
+// RUN: %clang_cc1 -fmodules -x objective-c -fmodule-cache-path %t -triple x86_64-apple-darwin10 -emit-llvm -o - %s | FileCheck %s
+// FIXME: When we have a syntax for modules in C, use that.
-__import_module__ irgen;
+@import irgen;
// CHECK: define void @triple_value
void triple_value(int *px) {
OpenPOWER on IntegriCloud