xref: /llvm-project/clang/test/CodeGenObjC/stand-alone-implementation.m (revision 0f1c1be1968076d6f96f8a7bcc4a15cf195ecd97)
1// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -emit-llvm -o - %s | FileCheck -check-prefix=CHECK-X86-64 %s
2
3// Allow injection of ivars into implementation's implicit class.
4
5@implementation INTFSTANDALONE // expected-warning {{cannot find interface declaration for 'INTFSTANDALONE'}}
6{
7  id IVAR1;
8  id IVAR2;
9}
10- (id) Meth { return IVAR1; }
11@end
12
13// CHECK-X86-64: @"OBJC_IVAR_$_INTFSTANDALONE.IVAR1"
14// CHECK-X86-64: @"OBJC_IVAR_$_INTFSTANDALONE.IVAR2"
15
16