summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGenObjC/encode-test-5.m
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/CodeGenObjC/encode-test-5.m')
-rw-r--r--clang/test/CodeGenObjC/encode-test-5.m11
1 files changed, 11 insertions, 0 deletions
diff --git a/clang/test/CodeGenObjC/encode-test-5.m b/clang/test/CodeGenObjC/encode-test-5.m
new file mode 100644
index 00000000000..970df3da878
--- /dev/null
+++ b/clang/test/CodeGenObjC/encode-test-5.m
@@ -0,0 +1,11 @@
+// RUN: clang-cc -triple=i686-apple-darwin9 -fnext-runtime -emit-llvm -o %t %s &&
+
+// RUN: grep ji %t | count 1 &&
+char *a = @encode(_Complex int);
+
+// RUN: grep jf %t | count 1 &&
+char *b = @encode(_Complex float);
+
+// RUN: grep jd %t | count 1
+char *c = @encode(_Complex double);
+
OpenPOWER on IntegriCloud