From a0fb00f9837bd0d2e5948f16f6a6b82a7a628f51 Mon Sep 17 00:00:00 2001 From: dim Date: Sat, 26 Feb 2011 22:09:03 +0000 Subject: Vendor import of clang trunk r126547: http://llvm.org/svn/llvm-project/cfe/trunk@126547 --- test/CodeGenObjC/2008-08-25-incompatible-cond-expr.m | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 test/CodeGenObjC/2008-08-25-incompatible-cond-expr.m (limited to 'test/CodeGenObjC/2008-08-25-incompatible-cond-expr.m') diff --git a/test/CodeGenObjC/2008-08-25-incompatible-cond-expr.m b/test/CodeGenObjC/2008-08-25-incompatible-cond-expr.m new file mode 100644 index 0000000..f285cca --- /dev/null +++ b/test/CodeGenObjC/2008-08-25-incompatible-cond-expr.m @@ -0,0 +1,10 @@ +// RUN: %clang_cc1 -emit-llvm -o %t %s + +@protocol P0 +@end +@interface A +@end + +id f0(int a, id x, A* p) { + return a ? x : p; +} -- cgit v1.1