summaryrefslogtreecommitdiffstats
path: root/clang/test/Modules/class-extension-protocol.m
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/Modules/class-extension-protocol.m')
-rw-r--r--clang/test/Modules/class-extension-protocol.m9
1 files changed, 9 insertions, 0 deletions
diff --git a/clang/test/Modules/class-extension-protocol.m b/clang/test/Modules/class-extension-protocol.m
new file mode 100644
index 00000000000..752e4e129d2
--- /dev/null
+++ b/clang/test/Modules/class-extension-protocol.m
@@ -0,0 +1,9 @@
+// RUN: rm -rf %t.cache
+// RUN: %clang_cc1 %s -fsyntax-only -fmodules -fimplicit-module-maps -fmodules-cache-path=%t.cache -I%S/Inputs/class-extension -verify
+// expected-no-diagnostics
+
+#import "a-private.h"
+
+int foo(A *X) {
+ return X.p0 + X.p1;
+}
OpenPOWER on IntegriCloud