summaryrefslogtreecommitdiff
path: root/clang/test/CodeGenObjC/2008-10-23-invalid-icmp.m
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/CodeGenObjC/2008-10-23-invalid-icmp.m')
-rw-r--r--clang/test/CodeGenObjC/2008-10-23-invalid-icmp.m7
1 files changed, 7 insertions, 0 deletions
diff --git a/clang/test/CodeGenObjC/2008-10-23-invalid-icmp.m b/clang/test/CodeGenObjC/2008-10-23-invalid-icmp.m
new file mode 100644
index 0000000..ce01bdb
--- /dev/null
+++ b/clang/test/CodeGenObjC/2008-10-23-invalid-icmp.m
@@ -0,0 +1,7 @@
+// RUN: %clang_cc1 -emit-llvm -o %t %s
+
+@protocol P @end
+
+int f0(id<P> d) {
+ return (d != ((void*) 0));
+}