commit | 9a0fcfe659b65e1e1bba4ba5f35a12ffcd088ea0 | [log] [tgz] |
---|---|---|
author | Eli Friedman <eli.friedman@gmail.com> | Mon May 17 02:50:18 2010 +0000 |
committer | Eli Friedman <eli.friedman@gmail.com> | Mon May 17 02:50:18 2010 +0000 |
tree | f2b33bffc1df68a7d79aa696d282b43afc35ca37 | |
parent | 150fcd5dcb79ad0a9cc6824c5589000e3669c7a4 [diff] [blame] |
PR7117: Make sure we don't lose the calling convention for K&R-style definitions. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@103932 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/CodeGen/stdcall-fastcall.c b/test/CodeGen/stdcall-fastcall.c index bea6df3..46fe326 100644 --- a/test/CodeGen/stdcall-fastcall.c +++ b/test/CodeGen/stdcall-fastcall.c
@@ -31,3 +31,9 @@ return 0; } +// PR7117 +void __attribute((stdcall)) f5(foo) int foo; {} +void f6(void) { + f5(0); + // CHECK: call x86_stdcallcc void (...)* bitcast +}