Steve Naroff 3de6b70730 Fix a couple recent ABI regressions noticed during code review (fallout from the ObjC type system rewrite).
It's unfortunate that the mangling includes the low-level structs. Nevertheless, we need this for binary compatibility with GCC.

llvm-svn: 76755
2009-07-22 17:14:51 +00:00

11 lines
248 B
Objective-C

// rdar://6657613
// RUN: clang-cc -emit-llvm %s -o %t &&
@class C;
// RUN: grep _Z1fP11objc_object %t | count 1 &&
void __attribute__((overloadable)) f(id c) { }
// RUN: grep _Z1fP1C %t | count 1
void __attribute__((overloadable)) f(C *c) { }