summaryrefslogtreecommitdiff
path: root/clang/test/CodeGen/2004-02-13-IllegalVararg.c
blob: cbc9151ec63172c655429e8bd4eb347a9fd3b650 (about) (plain)
1
2
3
4
5
6
7
8
9
// RUN: %clang_cc1  %s -w -emit-llvm -o -

float test(int X, ...) {
  __builtin_va_list ap;
  float F;
  __builtin_va_start(ap, X);
  F = __builtin_va_arg(ap, float);
  return F;
}