diff options
author | Duncan Sands <baldrick@free.fr> | 2008-01-11 21:23:39 +0000 |
---|---|---|
committer | Duncan Sands <baldrick@free.fr> | 2008-01-11 21:23:39 +0000 |
commit | eb824709cbc6810bfc35833833c5b5cb069f6c40 (patch) | |
tree | 1c84cb52e66a517aaede7bf3712d53e4022e12b1 /test/Assembler/2008-01-11-VarargAttrs.ll | |
parent | 497e888daf9ba6489928e1153804ed12a7fe44c5 (diff) | |
download | external_llvm-eb824709cbc6810bfc35833833c5b5cb069f6c40.zip external_llvm-eb824709cbc6810bfc35833833c5b5cb069f6c40.tar.gz external_llvm-eb824709cbc6810bfc35833833c5b5cb069f6c40.tar.bz2 |
If there are attributes on the varargs part of a
call, don't discard them.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45884 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Assembler/2008-01-11-VarargAttrs.ll')
-rw-r--r-- | test/Assembler/2008-01-11-VarargAttrs.ll | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/Assembler/2008-01-11-VarargAttrs.ll b/test/Assembler/2008-01-11-VarargAttrs.ll new file mode 100644 index 0000000..c46b2a5 --- /dev/null +++ b/test/Assembler/2008-01-11-VarargAttrs.ll @@ -0,0 +1,10 @@ +; RUN: llvm-as < %s | llvm-dis | grep byval | count 2 + + %struct = type { } + +declare void @foo(...) + +define void @bar() { + call void (...)* @foo(%struct* byval null, %struct* byval null ) + ret void +} |