Chris Lattner | 2abc27d | 2005-01-03 04:39:16 +0000 | [diff] [blame] | 1 | // This file is erroneous, but should not cause the compiler to ICE. |
2 | // PR481 | ||||
Reid Spencer | 4cda190 | 2007-04-16 15:15:52 +0000 | [diff] [blame^] | 3 | // RUN: %llvmgcc %s -S -o /dev/null |& not grep {internal compiler error} |
Chris Lattner | 2abc27d | 2005-01-03 04:39:16 +0000 | [diff] [blame] | 4 | |
5 | #include <stdarg.h> | ||||
6 | int flags(int a, int b, ...) { | ||||
7 | va_list args; | ||||
8 | va_start(args,a); // not the last named arg | ||||
9 | foo(args); | ||||
10 | } |