Fariborz Jahanian | 01ed063 | 2009-12-14 18:00:56 +0000 | [diff] [blame] | 1 | // RUN: clang -cc1 -emit-llvm -o %t %s |
Daniel Dunbar | 3e98e51 | 2008-09-08 18:01:15 +0000 | [diff] [blame] | 2 | |
Daniel Dunbar | a56f746 | 2008-08-26 00:41:39 +0000 | [diff] [blame] | 3 | @protocol P0 |
4 | @end | ||||
5 | @interface A <P0> | ||||
6 | @end | ||||
7 | |||||
8 | id f0(int a, id<P0> x, A* p) { | ||||
9 | return a ? x : p; | ||||
10 | } |