Do not allow attributes beyond a function's last
[oota-llvm.git] / test / Verifier / 2008-01-11-VarargAttrs.ll
1 ; RUN: not llvm-as < %s
2
3         %struct = type {  }
4
5 declare void @foo(...)
6
7 define void @bar() {
8         call void (...)* @foo(%struct* inreg null )
9         ret void
10 }