xref: /llvm-project/clang/test/CodeGenObjC/no-vararg-messaging.m (revision 0f1c1be1968076d6f96f8a7bcc4a15cf195ecd97)
1// REQUIRES: x86-registered-target
2// RUN: %clang_cc1 -triple x86_64-apple-darwin10  -S -o - %s | FileCheck %s
3
4@interface Foo
5+(id)alloc;
6-(id)init;
7-(id)self;
8-(id)retain;
9-(void)release;
10-(id)autorelease;
11@end
12
13void test(void)
14{
15	[[[[[[Foo alloc] init] retain] autorelease] self] release];
16}
17
18// CHECK-NOT: xorb
19