blob: f8b150447b0438f75eecb26964ded2ac71e2d8de [file] [log] [blame]
Manuel Klimeke8bd0db2015-11-05 15:24:47 +00001// RUN: rm -rf %t
2// RUN: cd %S
3// RUN: %clang_cc1 -fmodules -x c++ -std=c++11 -fmodules-cache-path=%t \
4// RUN: -I%S/Inputs/private3 -emit-module -fmodule-name=A -o %t/m.pcm %s
5// RUN: %clang_cc1 -fmodules -x c++ -std=c++11 -fmodules-cache-path=%t \
6// RUN: -I%S/Inputs/private3 -emit-module -fmodule-name=B -o %t/m.pcm %s
7// RUN: %clang_cc1 -fmodules -x c++ -std=c++11 -fmodules-cache-path=%t \
8// RUN: -I%S/Inputs/private3 -emit-module -fmodule-name=C -o %t/m.pcm %s
9// RUN: %clang_cc1 -fmodules -x c++ -std=c++11 -fmodules-cache-path=%t \
10// RUN: -I%S/Inputs/private3 -emit-module -fmodule-name=D -o %t/m.pcm %s
11
12module A {
13 header "Inputs/private3/public.h"
14 private header "Inputs/private3/private.h"
15}
16module B {
17 header "Inputs/private3/public.h"
18 module "private.h" {
19 private header "Inputs/private3/private.h"
20 }
21}
22module C {
23 module "public.h" {
24 header "Inputs/private3/public.h"
25 }
26 private header "Inputs/private3/private.h"
27}
28module D {
29 module "public.h" {
30 header "Inputs/private3/public.h"
31 }
32 module "private.h" {
33 private header "Inputs/private3/private.h"
34 }
35}