aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGenObjC/overloadable.m
blob: 7e9cc3d3b36da2065a13b43c036c98864f1d50a8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
// 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) { }