| Daniel Dunbar | d7d5f02 | 2009-03-24 02:24:46 +0000 | [diff] [blame] | 1 | // RUN: clang-cc -fnext-runtime -emit-llvm -o %t %s |
| Daniel Dunbar | 91e19b2 | 2008-09-11 00:50:25 +0000 | [diff] [blame] | 2 | |
| 3 | void f0(id a) { | ||||
| 4 | // This should have an implicit cast | ||||
| 5 | [ a print: "hello" ]; | ||||
| 6 | } | ||||
| 7 | |||||
| 8 | @interface A | ||||
| 9 | -(void) m: (int) arg0, ...; | ||||
| 10 | @end | ||||
| 11 | |||||
| 12 | int f1(A *a) { | ||||
| 13 | // This should also get an implicit cast (for the vararg) | ||||
| 14 | [a m: 1, "test"]; | ||||
| 15 | } | ||||