Skip to content

Commit 5bdcd03

Browse files
committed
Zero arg varargs functions are legal in LLVM, but not in C.
llvm-svn: 9425
1 parent 37f4a4c commit 5bdcd03

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
2+
declare sbyte* %llvm.va_start()
3+
declare void %llvm.va_end(sbyte*)
4+
5+
void %test(...) {
6+
%P = call sbyte* %llvm.va_start()
7+
call void %llvm.va_end(sbyte* %P)
8+
ret void
9+
}

0 commit comments

Comments
 (0)