diff options
Diffstat (limited to 'test/CodeGen/overloadable.c')
-rw-r--r-- | test/CodeGen/overloadable.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/CodeGen/overloadable.c b/test/CodeGen/overloadable.c index 8b40e4d..4946c6d 100644 --- a/test/CodeGen/overloadable.c +++ b/test/CodeGen/overloadable.c @@ -1,5 +1,6 @@ // RUN: %clang_cc1 -triple %itanium_abi_triple -emit-llvm %s -o - | FileCheck %s // CHECK: _Z1fPA10_1X +// CHECK: _Z1fPFvE int __attribute__((overloadable)) f(int x) { return x; } float __attribute__((overloadable)) f(float x) { return x; } @@ -13,6 +14,8 @@ void __attribute__((overloadable)) f(struct X (*ptr)[10]) { } void __attribute__((overloadable)) f(int x, int y, ...) { } +void __attribute__((overloadable)) f(void (*x)()) {} + int main() { int iv = 17; float fv = 3.0f; |