2015-08-08 07:25:47 +08:00
|
|
|
// RUN: %clang_cc1 -emit-llvm %s -o - -triple=x86_64-pc-win32 | FileCheck %s
|
|
|
|
|
2018-02-24 03:30:48 +08:00
|
|
|
// CHECK: define dso_local void @"\01?f@@$$J0YAXP6AX@Z@Z"
|
2015-08-08 07:25:47 +08:00
|
|
|
__attribute__((overloadable)) void f(void (*x)()) {}
|
2017-06-28 05:31:31 +08:00
|
|
|
|
2018-02-24 03:30:48 +08:00
|
|
|
// CHECK: define dso_local void @f
|
2017-06-28 05:31:31 +08:00
|
|
|
void f(void (*x)(int)) {}
|
|
|
|
|
2018-02-24 03:30:48 +08:00
|
|
|
// CHECK: define dso_local void @g
|
2017-06-28 05:31:31 +08:00
|
|
|
void g(void (*x)(int)) {}
|
|
|
|
|
2018-02-24 03:30:48 +08:00
|
|
|
// CHECK: define dso_local void @"\01?g@@$$J0YAXP6AX@Z@Z"
|
2017-06-28 05:31:31 +08:00
|
|
|
__attribute__((overloadable)) void g(void (*x)()) {}
|