Daniel Jasper | 9729284 | 2013-09-11 07:20:44 +0000 | [diff] [blame] | 1 | // RUN: rm -rf %t |
Richard Smith | 9acb99e3 | 2014-12-10 03:09:48 +0000 | [diff] [blame] | 2 | // |
Richard Smith | 72bfb8e | 2015-06-15 23:39:16 +0000 | [diff] [blame] | 3 | // 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 |
| 4 | // 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 |
Richard Smith | 9acb99e3 | 2014-12-10 03:09:48 +0000 | [diff] [blame] | 5 | // |
Richard Smith | 72bfb8e | 2015-06-15 23:39:16 +0000 | [diff] [blame] | 6 | // RUN: cd %S |
| 7 | // RUN: %clang_cc1 -x objective-c++ -fmodules-cache-path=%t -fmodules -fmodule-map-file=Inputs/modular_maps/modulea.map -fmodule-map-file=Inputs/modular_maps/modulec.map -I Inputs/modular_maps %s -verify |
| 8 | // RUN: %clang_cc1 -x objective-c++ -fmodules-cache-path=%t -fmodules -fmodule-map-file=Inputs/modular_maps/modulec.map -fmodule-map-file=Inputs/modular_maps/modulea.map -I Inputs/modular_maps %s -verify |
Richard Smith | 9acb99e3 | 2014-12-10 03:09:48 +0000 | [diff] [blame] | 9 | // |
| 10 | // RUN: cd %S |
| 11 | // RUN: %clang_cc1 -x objective-c++ -fmodules-cache-path=%t -fmodules -fmodule-map-file=Inputs/modular_maps/modulea-cwd.map -fmodule-map-file=Inputs/modular_maps/modulec-cwd.map -I Inputs/modular_maps %s -verify -fmodule-map-file-home-is-cwd |
Richard Smith | 72bfb8e | 2015-06-15 23:39:16 +0000 | [diff] [blame] | 12 | // RUN: %clang_cc1 -x objective-c++ -fmodules-cache-path=%t -fmodules -fmodule-map-file=Inputs/modular_maps/modulec-cwd.map -fmodule-map-file=Inputs/modular_maps/modulea-cwd.map -I Inputs/modular_maps %s -verify -fmodule-map-file-home-is-cwd |
Daniel Jasper | 9729284 | 2013-09-11 07:20:44 +0000 | [diff] [blame] | 13 | |
Daniel Jasper | 97da917 | 2013-10-22 08:09:47 +0000 | [diff] [blame] | 14 | #include "common.h" |
Daniel Jasper | 9729284 | 2013-09-11 07:20:44 +0000 | [diff] [blame] | 15 | #include "a.h" |
| 16 | #include "b.h" // expected-error {{private header}} |
Richard Smith | 9887d79 | 2014-10-17 01:42:53 +0000 | [diff] [blame] | 17 | @import C; |
| 18 | const int v = a + c + x; |
Richard Smith | f7aeda1 | 2016-01-08 22:36:45 +0000 | [diff] [blame] | 19 | const int val = a + b + c + x; |