xref: /llvm-project/clang/test/Modules/minimal-identifier-tables.cpp (revision d79514e24b4da111b6b08535f975ae8f4d81c26d)
1*d79514e2SRichard Smith // RUN: rm -rf %t
2*d79514e2SRichard Smith // RUN: mkdir %t
3*d79514e2SRichard Smith // RUN: echo 'extern int some_long_variable_name;' > %t/x.h
4*d79514e2SRichard Smith // RUN: echo 'extern int some_long_variable_name;' > %t/y.h
5*d79514e2SRichard Smith // RUN: echo 'module X { header "x.h" } module Y { header "y.h" }' > %t/map
6*d79514e2SRichard Smith // RUN: %clang_cc1 -fmodules -x c++ -fmodule-name=X %t/map -emit-module -o %t/x.pcm
7*d79514e2SRichard Smith // RUN: %clang_cc1 -fmodules -x c++ -fmodule-name=Y %t/map -fmodule-file=%t/x.pcm -emit-module -o %t/y.pcm
8*d79514e2SRichard Smith // RUN: cat %t/y.pcm | FileCheck %s
9*d79514e2SRichard Smith //
10*d79514e2SRichard Smith // CHECK-NOT: some_long_variable_name
11