clang-1/test/CodeGenObjCXX/mangle.mm

33 строки
473 B
Plaintext
Исходник Обычный вид История

// RUN: clang-cc %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