diff options
| author | Eli Friedman <eli.friedman@gmail.com> | 2010-05-17 02:50:18 +0000 |
|---|---|---|
| committer | Eli Friedman <eli.friedman@gmail.com> | 2010-05-17 02:50:18 +0000 |
| commit | b41ad0fbeaef81599548ca7e44a95b67e135fda1 (patch) | |
| tree | 41db671297fee08d21dd27fb14f8e6c274f5c1c0 /clang/test/CodeGen | |
| parent | e07a408afc8a6f1342051c91fefb345960e1ff62 (diff) | |
| download | bcm5719-llvm-b41ad0fbeaef81599548ca7e44a95b67e135fda1.tar.gz bcm5719-llvm-b41ad0fbeaef81599548ca7e44a95b67e135fda1.zip | |
PR7117: Make sure we don't lose the calling convention for K&R-style
definitions.
llvm-svn: 103932
Diffstat (limited to 'clang/test/CodeGen')
| -rw-r--r-- | clang/test/CodeGen/stdcall-fastcall.c | 6 |
1 files changed, 6 insertions, 0 deletions
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 +} |

