summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-01-03 04:39:16 +0000
committerChris Lattner <sabre@nondot.org>2005-01-03 04:39:16 +0000
commit588d9471f329bf9f1924250ea9771a3a66ada05c (patch)
tree6112ab845207a4cf2a5eef644205ae13a03b0736
parente1329f4472bc8810c4ff68d857c088fc57c6af3c (diff)
downloadbcm5719-llvm-588d9471f329bf9f1924250ea9771a3a66ada05c.tar.gz
bcm5719-llvm-588d9471f329bf9f1924250ea9771a3a66ada05c.zip
new testcase for PR481
llvm-svn: 19270
-rw-r--r--llvm/test/Regression/CFrontend/2005-01-02-VAArgError-ICE.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/llvm/test/Regression/CFrontend/2005-01-02-VAArgError-ICE.c b/llvm/test/Regression/CFrontend/2005-01-02-VAArgError-ICE.c
new file mode 100644
index 00000000000..26a2da08172
--- /dev/null
+++ b/llvm/test/Regression/CFrontend/2005-01-02-VAArgError-ICE.c
@@ -0,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);
+}
OpenPOWER on IntegriCloud