blob: fab3c5d8580863c4841c744f8cbe6ffa84a019ab [file] [log] [blame]
Daniel Dunbarb21d6af2008-09-04 04:36:23 +00001// RUN: clang -fnext-runtime --emit-llvm -o %t %s
2
3typedef struct {
4 int x;
5 int y;
6 int z[10];
7} MyPoint;
8
9void f0(id a) {
10 int i;
11 MyPoint pt = { 1, 2};
12
13 [a print0];
14 [a print1: 10];
15 [a print2: 10 and: "hello" and: 2.2];
16 [a takeStruct: pt ];
17
18 void *s = @selector(print0);
19 for (i=0; i<2; ++i)
20 [a performSelector:s];
21}