[llvm-commits] CVS: llvm/test/Regression/CFrontend/2005-01-02-VAArgError-ICE.c
Chris Lattner
lattner at cs.uiuc.edu
Sun Jan 2 20:39:31 PST 2005
Changes in directory llvm/test/Regression/CFrontend:
2005-01-02-VAArgError-ICE.c added (r1.1)
---
Log message:
new testcase for PR481: http://llvm.cs.uiuc.edu/PR481
---
Diffs of the changes: (+10 -0)
Index: llvm/test/Regression/CFrontend/2005-01-02-VAArgError-ICE.c
diff -c /dev/null llvm/test/Regression/CFrontend/2005-01-02-VAArgError-ICE.c:1.1
*** /dev/null Sun Jan 2 22:39:26 2005
--- llvm/test/Regression/CFrontend/2005-01-02-VAArgError-ICE.c Sun Jan 2 22:39:16 2005
***************
*** 0 ****
--- 1,10 ----
+ // This file is erroneous, but should not cause the compiler to ICE.
+ // PR481
+ // RUN: %llvmgcc %s -S -o /dev/null 2>&1 | 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);
+ }
More information about the llvm-commits
mailing list