summaryrefslogtreecommitdiffstats
path: root/test/CodeGenObjC/undefined-protocol.m
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGenObjC/undefined-protocol.m')
-rw-r--r--test/CodeGenObjC/undefined-protocol.m6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/CodeGenObjC/undefined-protocol.m b/test/CodeGenObjC/undefined-protocol.m
new file mode 100644
index 0000000..7fe0790
--- /dev/null
+++ b/test/CodeGenObjC/undefined-protocol.m
@@ -0,0 +1,6 @@
+// RUN: clang-cc -emit-llvm-only -fgnu-runtime %s
+
+@protocol MadeUpProtocol;
+
+@interface Object <MadeUpProtocol> @end
+@implementation Object @end
OpenPOWER on IntegriCloud