| 1 |
// RUN: split-file %s %t |
| 2 |
|
| 3 |
// 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 |
| 4 |
// 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 |
| 5 |
|
| 6 |
//--- module.modulemap |
| 7 |
module a { header "a.h" } |
| 8 |
module b { header "b.h" } |
| 9 |
|
| 10 |
//--- a.h |
| 11 |
type_info* foo; |
| 12 |
|
| 13 |
//--- b.h |
| 14 |
type_info* bar; |
| 15 |
|