Revert "[llvm] Improve llvm.objectsize computation by computing GEP, alloca and mallo...
[llvm-project.git] / clang / test / CodeGen / 2004-02-13-IllegalVararg.c
blob9a2d286b777666e075cf2370930a13b4fc28380d
1 // RUN: %clang_cc1 %s -w -emit-llvm -o -
3 // https://bugs.llvm.org/show_bug.cgi?id=46644#c6
4 // XFAIL: target=arm64-apple-{{.*}}
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;