Daniel Jasper | 9729284 | 2013-09-11 07:20:44 +0000 | [diff] [blame] | 1 | // RUN: rm -rf %t |
Richard Smith | 9887d79 | 2014-10-17 01:42:53 +0000 | [diff] [blame^] | 2 | // RUN: %clang_cc1 -x objective-c++ -fmodules-cache-path=%t -fmodules -fmodule-map-file=%S/Inputs/modular_maps/modulea.map -fmodule-map-file=%S/Inputs/modular_maps/modulec.map -I %S/Inputs/modular_maps %s -verify |
| 3 | // RUN: %clang_cc1 -x objective-c++ -fmodules-cache-path=%t -fmodules -fmodule-map-file=%S/Inputs/modular_maps/modulec.map -fmodule-map-file=%S/Inputs/modular_maps/modulea.map -I %S/Inputs/modular_maps %s -verify |
Daniel Jasper | 9729284 | 2013-09-11 07:20:44 +0000 | [diff] [blame] | 4 | |
Daniel Jasper | 97da917 | 2013-10-22 08:09:47 +0000 | [diff] [blame] | 5 | #include "common.h" |
Daniel Jasper | 9729284 | 2013-09-11 07:20:44 +0000 | [diff] [blame] | 6 | #include "a.h" |
| 7 | #include "b.h" // expected-error {{private header}} |
Richard Smith | 9887d79 | 2014-10-17 01:42:53 +0000 | [diff] [blame^] | 8 | @import C; |
| 9 | const int v = a + c + x; |
| 10 | const int val = a + b + c + x; // expected-error {{undeclared identifier}} |