xref: /llvm-project/clang/test/CodeGen/2004-02-13-IllegalVararg.c (revision 26e50c4c4df10de7bd8fcad520bf11ab94331eac)
1 // RUN: %clang_cc1  %s -w -emit-llvm -o -
2 
3 // https://bugs.llvm.org/show_bug.cgi?id=46644#c6
4 // XFAIL: target=arm64-apple-{{.*}}
5 
test(int X,...)6 float test(int X, ...) {
7   __builtin_va_list ap;
8   float F;
9   __builtin_va_start(ap, X);
10   F = __builtin_va_arg(ap, float);
11   return F;
12 }
13