blob: b2bda672158538bab0d8557cb60a06c37ba9c50b [file] [log] [blame]
Daniel Dunbard7d5f022009-03-24 02:24:46 +00001// RUN: clang-cc -fnext-runtime --emit-llvm -o %t %s
Daniel Dunbarb21d6af2008-09-04 04:36:23 +00002
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}