xref: /minix3/external/bsd/llvm/dist/clang/test/CodeGenObjC/message-arrays.m (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
1*f4a2713aSLionel Sambuc// RUN: %clang_cc1 -emit-llvm -o %t %s
2*f4a2713aSLionel Sambuc
3*f4a2713aSLionel Sambucvoid f0(id a) {
4*f4a2713aSLionel Sambuc  // This should have an implicit cast
5*f4a2713aSLionel Sambuc  [ a print: "hello" ];
6*f4a2713aSLionel Sambuc}
7*f4a2713aSLionel Sambuc
8*f4a2713aSLionel Sambuc@interface A
9*f4a2713aSLionel Sambuc-(void) m: (int) arg0, ...;
10*f4a2713aSLionel Sambuc@end
11*f4a2713aSLionel Sambuc
12*f4a2713aSLionel Sambucint f1(A *a) {
13*f4a2713aSLionel Sambuc  // This should also get an implicit cast (for the vararg)
14*f4a2713aSLionel Sambuc  [a m: 1, "test"];
15*f4a2713aSLionel Sambuc}
16