blob: db8255846274774bab1dda3b3bea9038685b83fc [file] [log] [blame]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001// This file is erroneous, but should not cause the compiler to ICE.
2// PR481
3// RUN: %llvmgcc %s -S -o /dev/null |& not grep {internal compiler error}
4
5#include <stdarg.h>
6int flags(int a, int b, ...) {
7 va_list args;
8 va_start(args,a); // not the last named arg
9 foo(args);
10}