blob: 26a2da08172b123156f8abb5fa327f98348b75e5 [file] [log] [blame]
Chris Lattner2abc27d2005-01-03 04:39:16 +00001// This file is erroneous, but should not cause the compiler to ICE.
2// PR481
3// RUN: %llvmgcc %s -S -o /dev/null 2>&1 | 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}