summaryrefslogtreecommitdiffstats
path: root/clang/test/Modules/private.cpp
diff options
context:
space:
mode:
authorLawrence Crowl <crowl@google.com>2013-06-20 21:15:51 +0000
committerLawrence Crowl <crowl@google.com>2013-06-20 21:15:51 +0000
commit2cd24bd52d090bc9454c56fa19592a2a2acac58c (patch)
treeae1d9141ef1786042a0e235de101e2d519473b52 /clang/test/Modules/private.cpp
parentb53e5483b0490894b67a59ac4913a5229993591a (diff)
downloadbcm5719-llvm-2cd24bd52d090bc9454c56fa19592a2a2acac58c.tar.gz
bcm5719-llvm-2cd24bd52d090bc9454c56fa19592a2a2acac58c.zip
Test files for private header patch.
llvm-svn: 184472
Diffstat (limited to 'clang/test/Modules/private.cpp')
-rw-r--r--clang/test/Modules/private.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/clang/test/Modules/private.cpp b/clang/test/Modules/private.cpp
new file mode 100644
index 00000000000..93b4b9457f4
--- /dev/null
+++ b/clang/test/Modules/private.cpp
@@ -0,0 +1,13 @@
+// RUN: rm -rf %t
+// RUN: %clang_cc1 -x objective-c -fmodules-cache-path=%t -fmodules -I %S/Inputs/private %s -verify
+
+#include "common.h"
+@import libPrivate1;
+#include "private1.h" // expected-error {{use of private header from outside its module}}
+#include "public2.h"
+#include "private2.h" // expected-error {{use of private header from outside its module}}
+
+struct use_this1 client_variable1;
+struct use_this2 client_variable2;
+struct mitts_off1 client_variable3;
+struct mitts_off2 client_variable4;
OpenPOWER on IntegriCloud