summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/array-9.c
diff options
context:
space:
mode:
authorreichelt <reichelt@138bc75d-0d04-0410-961f-82ee72b054a4>2006-05-07 21:15:33 +0000
committerreichelt <reichelt@138bc75d-0d04-0410-961f-82ee72b054a4>2006-05-07 21:15:33 +0000
commitadfbdef12013827b9a8fb6d4d45ccc038203ff45 (patch)
treecd5147de28e8c50c622b0bb69b60ffcea6fa8caa /gcc/testsuite/gcc.dg/array-9.c
parent1b2f34a99bab9910814dc196e442cc9251392e51 (diff)
downloadgcc-adfbdef12013827b9a8fb6d4d45ccc038203ff45.tar.gz
PR target/27421
* config/i386/i386.c (classify_argument): Skip fields with invalid types. * gcc.dg/array-9.c: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@113609 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.dg/array-9.c')
-rw-r--r--gcc/testsuite/gcc.dg/array-9.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/array-9.c b/gcc/testsuite/gcc.dg/array-9.c
new file mode 100644
index 00000000000..f173f656939
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/array-9.c
@@ -0,0 +1,10 @@
+/* PR target/27421 */
+/* { dg-do compile } */
+
+struct A
+{
+ int i;
+ void x[1]; /* { dg-error "array of voids" } */
+};
+
+void foo(struct A a) {}