diff options
author | Daniel Dunbar <daniel@zuster.org> | 2008-10-23 23:30:52 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2008-10-23 23:30:52 +0000 |
commit | 340b5ddcf9c58a0790ef3065cf09c163aad846ba (patch) | |
tree | 9d2532e88d3436fa227a89b74e90e15817a6eecf /clang/test/CodeGenObjC | |
parent | a6090204a190c445fa36ad123761e4a1bfb005a3 (diff) | |
download | bcm5719-llvm-340b5ddcf9c58a0790ef3065cf09c163aad846ba.tar.gz bcm5719-llvm-340b5ddcf9c58a0790ef3065cf09c163aad846ba.zip |
Fix regression in comparison of qualified id; == operator was being
created with LHS and RHS whose types didn't match.
llvm-svn: 58049
Diffstat (limited to 'clang/test/CodeGenObjC')
-rw-r--r-- | clang/test/CodeGenObjC/2008-10-23-invalid-icmp.m | 7 |
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 00000000000..abfe6afcc7c --- /dev/null +++ b/clang/test/CodeGenObjC/2008-10-23-invalid-icmp.m @@ -0,0 +1,7 @@ +// RUN: clang -emit-llvm -o %t %s + +@protocol P @end + +int f0(id<P> d) { + return (d != ((void*) 0)); +} |