diff options
Diffstat (limited to 'test/Modules/minimal-identifier-tables.cpp')
-rw-r--r-- | test/Modules/minimal-identifier-tables.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/Modules/minimal-identifier-tables.cpp b/test/Modules/minimal-identifier-tables.cpp new file mode 100644 index 000000000000..0674746e07fe --- /dev/null +++ b/test/Modules/minimal-identifier-tables.cpp @@ -0,0 +1,10 @@ +// RUN: rm -rf %t +// RUN: mkdir %t +// RUN: echo 'extern int some_long_variable_name;' > %t/x.h +// RUN: echo 'extern int some_long_variable_name;' > %t/y.h +// RUN: echo 'module X { header "x.h" } module Y { header "y.h" }' > %t/map +// RUN: %clang_cc1 -fmodules -x c++ -fmodule-name=X %t/map -emit-module -o %t/x.pcm +// RUN: %clang_cc1 -fmodules -x c++ -fmodule-name=Y %t/map -fmodule-file=%t/x.pcm -emit-module -o %t/y.pcm +// RUN: cat %t/y.pcm | FileCheck %s +// +// CHECK-NOT: some_long_variable_name |