diff options
Diffstat (limited to 'llvm/test/Assembler/2009-05-22-CC.ll')
| -rw-r--r-- | llvm/test/Assembler/2009-05-22-CC.ll | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/llvm/test/Assembler/2009-05-22-CC.ll b/llvm/test/Assembler/2009-05-22-CC.ll new file mode 100644 index 00000000000..ba80d64ac28 --- /dev/null +++ b/llvm/test/Assembler/2009-05-22-CC.ll @@ -0,0 +1,9 @@ +; RUN: llvm-as < %s + +; Verify that calls with correct calling conv are accepted +declare x86_stdcallcc i32 @re_string_construct(i8* inreg %pstr, i8* inreg %str, i32 inreg %len, i8* %trans, i32 %icase, i8* %dfa); +define void @main() { +entry: + %0 = call x86_stdcallcc i32 (...)* bitcast (i32 (i8*, i8*, i32, i8*, i32, i8*)* @re_string_construct to i32 (...)*)(i32 inreg 0, i32 inreg 0, i32 inreg 0, i32 0, i32 0, i8* inttoptr (i32 673194176 to i8*)); + ret void +} |

