diff options
author | Anders Carlsson <andersca@mac.com> | 2009-03-07 22:03:21 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2009-03-07 22:03:21 +0000 |
commit | 16d5d291ecec808d21a4a0cd0b4846754abb0585 (patch) | |
tree | f33d28e246445a618c51f4428a333357c045e521 /clang/test | |
parent | d18088a7b1930f1ea3190e4b910b6da43118589e (diff) | |
download | bcm5719-llvm-16d5d291ecec808d21a4a0cd0b4846754abb0585.tar.gz bcm5719-llvm-16d5d291ecec808d21a4a0cd0b4846754abb0585.zip |
Mangle Objective-C interfaces correctly (where correctly refers to what gcc does)
llvm-svn: 66349
Diffstat (limited to 'clang/test')
-rw-r--r-- | clang/test/CodeGenObjC/overloadable.m | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/clang/test/CodeGenObjC/overloadable.m b/clang/test/CodeGenObjC/overloadable.m new file mode 100644 index 00000000000..5caaca9010b --- /dev/null +++ b/clang/test/CodeGenObjC/overloadable.m @@ -0,0 +1,9 @@ +// RUN: clang -emit-llvm %s -o %t && + +@class C; + +// RUN: grep _Z1fP11objc_object %t | count 1 && +void __attribute__((overloadable)) f(C *c) { } + +// RUN: grep _Z1fP1C | count 1 +void __attribute__((overloadable)) f(id c) { } |