diff options
Diffstat (limited to 'clang/test/Modules/prebuilt-module.m')
-rw-r--r-- | clang/test/Modules/prebuilt-module.m | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/clang/test/Modules/prebuilt-module.m b/clang/test/Modules/prebuilt-module.m new file mode 100644 index 00000000000..a9c69942e89 --- /dev/null +++ b/clang/test/Modules/prebuilt-module.m @@ -0,0 +1,10 @@ +// RUN: rm -rf %t +// +// RUN: %clang_cc1 -fmodules -x objective-c -I %S/Inputs/prebuilt-module -triple %itanium_abi_triple -emit-module %S/Inputs/prebuilt-module/module.modulemap -fmodule-name=prebuilt -o %t/prebuilt.pcm +// RUN: %clang_cc1 -fmodules -fprebuilt-module-path=%t/ -fdisable-module-hash %s -verify + +// expected-no-diagnostics +@import prebuilt; +int test() { + return a; +} |