summaryrefslogtreecommitdiffstats
path: root/test/CodeGenObjC/encode-test-4.m
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGenObjC/encode-test-4.m')
-rw-r--r--test/CodeGenObjC/encode-test-4.m5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/CodeGenObjC/encode-test-4.m b/test/CodeGenObjC/encode-test-4.m
new file mode 100644
index 0000000..90b3002
--- /dev/null
+++ b/test/CodeGenObjC/encode-test-4.m
@@ -0,0 +1,5 @@
+// RUN: clang-cc -emit-llvm -o - %s -O2 | grep "ret i32 1"
+
+int a() {
+ return @encode(int) == @encode(int);
+}
OpenPOWER on IntegriCloud