xref: /minix3/external/bsd/llvm/dist/clang/test/Modules/separate_map_tree.cpp (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
1*f4a2713aSLionel Sambuc // RUN: rm -rf %t
2*f4a2713aSLionel Sambuc // RUN: %clang_cc1 -fmodules-cache-path=%t -fmodules -fmodules-decluse -fmodule-name=A -fmodule-map-file=%S/Inputs/separate_map_tree/maps/modulea.map -I %S/Inputs/separate_map_tree/src %s -verify
3*f4a2713aSLionel Sambuc 
4*f4a2713aSLionel Sambuc #include "common.h"
5*f4a2713aSLionel Sambuc #include "public-in-b.h" // expected-error {{private header}}
6*f4a2713aSLionel Sambuc #include "public-in-c.h"
7*f4a2713aSLionel Sambuc #include "private-in-c.h" // expected-error {{private header}}
8*f4a2713aSLionel Sambuc const int val = common + b + c + c_; // expected-error {{undeclared identifier}}
9