blob: 90c234b66f57e7e180e34bd6698f1dc30d938f6f [file] [log] [blame]
Richard Smith8cebe372015-02-25 22:20:13 +00001// RUN: rm -rf %t
2
3// RUN: %clang_cc1 -x c++ -std=c++11 -fmodules -fmodule-name=b -o %t/b.pcm -fmodule-maps \
4// RUN: -emit-module %S/Inputs/merge-decl-context/merge-decl-context.modulemap -I%S/Inputs \
5// RUN: -I %S/Inputs/merge-decl-context
6// RUN: %clang_cc1 -x c++ -std=c++11 -fmodules -fmodule-name=c -o %t/c.pcm -fmodule-maps \
7// RUN: -fmodule-file=%t/b.pcm \
8// RUN: -emit-module %S/Inputs/merge-decl-context/merge-decl-context.modulemap -I%S/Inputs \
9// RUN: -I %S/Inputs/merge-decl-context
10
11// Use the two modules in a single compile.
12// RUN: %clang_cc1 -x c++ -std=c++11 -fmodules -fmodule-file=%t/c.pcm -fmodule-file=%t/b.pcm \
13// RUN: -fmodule-map-file=%S/Inputs/merge-decl-context/merge-decl-context.modulemap -I%S/Inputs \
14// RUN: -emit-llvm -o %t/test.o %s
15
16#include "Inputs/merge-decl-context/a.h"
17#include "Inputs/merge-decl-context/b.h"
18#include "Inputs/merge-decl-context/c.h"
19
20void t() {
21 ff(42);
22}
23
24