18cebe37fSRichard Smith // RUN: rm -rf %t 28cebe37fSRichard Smith 347972afdSRichard Smith // RUN: %clang_cc1 -x c++ -std=c++11 -fmodules -fimplicit-module-maps -fmodule-name=b -o %t/b.pcm \ 48cebe37fSRichard Smith // RUN: -emit-module %S/Inputs/merge-decl-context/merge-decl-context.modulemap -I%S/Inputs \ 58cebe37fSRichard Smith // RUN: -I %S/Inputs/merge-decl-context 647972afdSRichard Smith // RUN: %clang_cc1 -x c++ -std=c++11 -fmodules -fimplicit-module-maps -fmodule-name=c -o %t/c.pcm \ 70b88437eSRichard Smith // RUN: -fmodule-file=%t/b.pcm -fno-implicit-modules \ 80b88437eSRichard Smith // RUN: -emit-module %S/Inputs/merge-decl-context/merge-decl-context.modulemap -I%S/Inputs \ 90b88437eSRichard Smith // RUN: -I %S/Inputs/merge-decl-context 1047972afdSRichard Smith // RUN: %clang_cc1 -x c++ -std=c++11 -fmodules -fimplicit-module-maps -fmodule-name=d -o %t/d.pcm \ 110b88437eSRichard Smith // RUN: -fmodule-file=%t/b.pcm -fno-implicit-modules \ 128cebe37fSRichard Smith // RUN: -emit-module %S/Inputs/merge-decl-context/merge-decl-context.modulemap -I%S/Inputs \ 138cebe37fSRichard Smith // RUN: -I %S/Inputs/merge-decl-context 148cebe37fSRichard Smith 158cebe37fSRichard Smith // Use the two modules in a single compile. 1647972afdSRichard Smith // RUN: %clang_cc1 -x c++ -std=c++11 -fmodules -fimplicit-module-maps -fmodule-file=%t/c.pcm -fmodule-file=%t/b.pcm \ 170b88437eSRichard Smith // RUN: -fmodule-file=%t/d.pcm -fno-implicit-modules \ 188cebe37fSRichard Smith // RUN: -fmodule-map-file=%S/Inputs/merge-decl-context/merge-decl-context.modulemap -I%S/Inputs \ 198cebe37fSRichard Smith // RUN: -emit-llvm -o %t/test.o %s 208cebe37fSRichard Smith 21*fe1bc708SRichard Smith // RUN: %clang_cc1 -x c++ -std=c++11 -fmodules -fmodules-cache-path=%t \ 22*fe1bc708SRichard Smith // RUN: -fmodule-map-file=%S/Inputs/merge-decl-context/merge-decl-context.modulemap -I%S/Inputs \ 23*fe1bc708SRichard Smith // RUN: -emit-llvm -o %t/test.o -DNO_TEXTUAL_INCLUSION %s 24*fe1bc708SRichard Smith 25*fe1bc708SRichard Smith #ifndef NO_TEXTUAL_INCLUSION 268cebe37fSRichard Smith #include "Inputs/merge-decl-context/a.h" 27*fe1bc708SRichard Smith #endif 288cebe37fSRichard Smith #include "Inputs/merge-decl-context/b.h" 298cebe37fSRichard Smith #include "Inputs/merge-decl-context/c.h" 300b88437eSRichard Smith #include "Inputs/merge-decl-context/d.h" 318cebe37fSRichard Smith t()328cebe37fSRichard Smithvoid t() { 338cebe37fSRichard Smith ff(42); 348cebe37fSRichard Smith } 35*fe1bc708SRichard Smith 36*fe1bc708SRichard Smith static_assert(Aggregate{.member = 1}.member == 1, ""); 37