- This is designed to make it obvious that %clang_cc1 is a "test variable" which is substituted. It is '%clang_cc1' instead of '%clang -cc1' because it can be useful to redefine what gets run as 'clang -cc1' (for example, to set a default target). llvm-svn: 91446
33 lines
475 B
Plaintext
33 lines
475 B
Plaintext
// RUN: %clang_cc1 %s -triple=x86_64-apple-darwin10 -emit-llvm -o - | FileCheck %s
|
|
|
|
// CHECK: @"_ZZ11+[A shared]E1a" = internal global
|
|
// CHECK: @"_ZZ11-[A(Foo) f]E1a" = internal global
|
|
|
|
@interface A
|
|
@end
|
|
|
|
@implementation A
|
|
|
|
+ (A *)shared {
|
|
static A* a;
|
|
|
|
return a;
|
|
}
|
|
|
|
@end
|
|
|
|
@interface A(Foo)
|
|
@end
|
|
|
|
@implementation A(Foo)
|
|
- (int)f {
|
|
// FIXME: Add a member function to s and make sure that it's mangled correctly.
|
|
struct s {
|
|
};
|
|
|
|
static s a;
|
|
|
|
return 0;
|
|
}
|
|
@end
|