1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-18 18:42:46 +02:00
llvm-mirror/test/FrontendC/2005-01-02-VAArgError-ICE.c
Anton Korobeynikov eb3cd5e822 For PR1338: Rename test dirs
llvm-svn: 51695
2008-05-29 19:17:15 +00:00

11 lines
313 B
C

// This file is erroneous, but should not cause the compiler to ICE.
// PR481
// RUN: %llvmgcc %s -S -o /dev/null |& not grep {internal compiler error}
#include <stdarg.h>
int flags(int a, int b, ...) {
va_list args;
va_start(args,a); // not the last named arg
foo(args);
}