From b41ad0fbeaef81599548ca7e44a95b67e135fda1 Mon Sep 17 00:00:00 2001 From: Eli Friedman Date: Mon, 17 May 2010 02:50:18 +0000 Subject: PR7117: Make sure we don't lose the calling convention for K&R-style definitions. llvm-svn: 103932 --- clang/test/CodeGen/stdcall-fastcall.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'clang/test/CodeGen') diff --git a/clang/test/CodeGen/stdcall-fastcall.c b/clang/test/CodeGen/stdcall-fastcall.c index bea6df39f96..46fe326fadf 100644 --- a/clang/test/CodeGen/stdcall-fastcall.c +++ b/clang/test/CodeGen/stdcall-fastcall.c @@ -31,3 +31,9 @@ int main(void) { return 0; } +// PR7117 +void __attribute((stdcall)) f5(foo) int foo; {} +void f6(void) { + f5(0); + // CHECK: call x86_stdcallcc void (...)* bitcast +} -- cgit v1.2.3