
Function types without prototypes can arise when mangling a function type within an overloadable function in C. We mangle these as the absence of any parameter types (not even an empty parameter list). Differential Revision: http://reviews.llvm.org/D11848 llvm-svn: 244374
5 lines
179 B
C
5 lines
179 B
C
// RUN: %clang_cc1 -emit-llvm %s -o - -triple=x86_64-pc-win32 | FileCheck %s
|
|
|
|
// CHECK: define void @"\01?f@@$$J0YAXP6AX@Z@Z"
|
|
__attribute__((overloadable)) void f(void (*x)()) {}
|