summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGenObjC/overloadable.m
blob: abf1e27e18b8696b3ffcf3f9acf0beda9c58bd40 (plain)
1
2
3
4
5
6
7
8
9
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) { }
OpenPOWER on IntegriCloud