Files
llvm-project/clang/test/CodeGenObjC/messages.m
Daniel Dunbar c01f56c8de Add some Objective-C code generation tests.
- Note that these don't really test anything other than that code
   generation doesn't fail or crash. Better than nothing though!

llvm-svn: 55761
2008-09-04 04:36:23 +00:00

22 lines
341 B
Objective-C

// RUN: clang -fnext-runtime --emit-llvm -o %t %s
typedef struct {
int x;
int y;
int z[10];
} MyPoint;
void f0(id a) {
int i;
MyPoint pt = { 1, 2};
[a print0];
[a print1: 10];
[a print2: 10 and: "hello" and: 2.2];
[a takeStruct: pt ];
void *s = @selector(print0);
for (i=0; i<2; ++i)
[a performSelector:s];
}