diff options
Diffstat (limited to 'clang/test/Modules/pr151277.cpp')
-rw-r--r-- | clang/test/Modules/pr151277.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/clang/test/Modules/pr151277.cpp b/clang/test/Modules/pr151277.cpp new file mode 100644 index 0000000..2428e85 --- /dev/null +++ b/clang/test/Modules/pr151277.cpp @@ -0,0 +1,15 @@ +// RUN: split-file %s %t + +// RUN: %clang_cc1 -I%t -emit-module -o %t/a.pcm -fmodules %t/module.modulemap -fno-implicit-modules -fmodule-name=a -x c++-header -fms-compatibility +// RUN: %clang_cc1 -I%t -emit-module -o %t/b.pcm -fmodules %t/module.modulemap -fno-implicit-modules -fmodule-name=b -x c++-header -fms-compatibility -fmodule-file=%t/a.pcm + +//--- module.modulemap +module a { header "a.h" } +module b { header "b.h" } + +//--- a.h +type_info* foo; + +//--- b.h +type_info* bar; + |