xref: /aosp_15_r20/external/clang/test/Modules/explicit-build-extra-files.cpp (revision 67e74705e28f6214e480b399dd47ea732279e315)
1*67e74705SXin Li // REQUIRES: shell
2*67e74705SXin Li //
3*67e74705SXin Li // RUN: rm -rf %t
4*67e74705SXin Li // RUN: mkdir %t
5*67e74705SXin Li // RUN: cd %t
6*67e74705SXin Li // RUN: echo 'module X {}' > %t/x
7*67e74705SXin Li // RUN: echo 'module Y {}' > %t/y
8*67e74705SXin Li //
9*67e74705SXin Li // RUN: %clang_cc1 -emit-module -fmodules -fmodule-name=X %t/x -x c++ -o %t/x.pcm
10*67e74705SXin Li // RUN: %clang_cc1 -emit-module -fmodules -fmodule-name=Y %t/y -x c++ -o %t/y.pcm
11*67e74705SXin Li // RUN: %clang_cc1 -fmodules -fmodule-file=%t/x.pcm -fmodule-file=%t/y.pcm -x c++ /dev/null -fsyntax-only
12*67e74705SXin Li //
13*67e74705SXin Li // RUN: not test -f %t/modules.timestamp
14*67e74705SXin Li // RUN: not test -f %t/modules.idx
15