From 222e2a7620e6520ffaf4fc4e69d79c18da31542e Mon Sep 17 00:00:00 2001 From: "Zancanaro; Carlo" Date: Mon, 24 Sep 2012 09:58:17 +1000 Subject: Add the clang library to the repo (with some of my changes, too). --- clang/test/CodeGenObjC/overloadable.m | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 clang/test/CodeGenObjC/overloadable.m (limited to 'clang/test/CodeGenObjC/overloadable.m') diff --git a/clang/test/CodeGenObjC/overloadable.m b/clang/test/CodeGenObjC/overloadable.m new file mode 100644 index 0000000..4fd1429 --- /dev/null +++ b/clang/test/CodeGenObjC/overloadable.m @@ -0,0 +1,10 @@ +// rdar://6657613 +// RUN: %clang_cc1 -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) { } -- cgit v1.2.3