summaryrefslogtreecommitdiffstats
path: root/clang/test/Modules/modular_maps.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2014-10-17 01:42:53 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2014-10-17 01:42:53 +0000
commit9887d79af5fecf1413515e909644f6a23f491b69 (patch)
tree53f3726b93aa64f0b655514db1fcd7184803713f /clang/test/Modules/modular_maps.cpp
parent32e9c6465b3beab8ee95f78eb75c4d159fb060b3 (diff)
downloadbcm5719-llvm-9887d79af5fecf1413515e909644f6a23f491b69.tar.gz
bcm5719-llvm-9887d79af5fecf1413515e909644f6a23f491b69.zip
PR21215: Support -fmodule-map-file being specified multiple times. Support
loading multiple module map files from the same directory. llvm-svn: 220020
Diffstat (limited to 'clang/test/Modules/modular_maps.cpp')
-rw-r--r--clang/test/Modules/modular_maps.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/clang/test/Modules/modular_maps.cpp b/clang/test/Modules/modular_maps.cpp
index 9c9aba85a91..484e727c13e 100644
--- a/clang/test/Modules/modular_maps.cpp
+++ b/clang/test/Modules/modular_maps.cpp
@@ -1,8 +1,10 @@
// RUN: rm -rf %t
-// RUN: %clang_cc1 -x objective-c++ -fmodules-cache-path=%t -fmodules -fmodule-map-file=%S/Inputs/modular_maps/modulea.map -I %S/Inputs/modular_maps %s -verify
+// 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
+// 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
#include "common.h"
#include "a.h"
#include "b.h" // expected-error {{private header}}
-const int v = a + c;
-const int val = a + b + c; // expected-error {{undeclared identifier}}
+@import C;
+const int v = a + c + x;
+const int val = a + b + c + x; // expected-error {{undeclared identifier}}
OpenPOWER on IntegriCloud