* gcc.dg/array-5.c: Fix VLA decomposition test.
From-SVN: r45654
This commit is contained in:
parent
28d86bb96b
commit
17920efbf0
@ -1,3 +1,7 @@
|
||||
2001-09-17 Richard Henderson <rth@redhat.com>
|
||||
|
||||
* gcc.dg/array-5.c: Fix VLA decomposition test.
|
||||
|
||||
2001-09-16 Neil Booth <neil@daikokuya.demon.co.uk>
|
||||
|
||||
* gcc.dg/cpp/line5.c: New testcase.
|
||||
|
@ -35,7 +35,7 @@ void func(int n, int m)
|
||||
{
|
||||
/* Compatible, but undefined behavior; (2, 2) is not a constant
|
||||
expression, and thus A is a VLA. */
|
||||
int a[(2, 2)];
|
||||
int a[6][(2, 2)];
|
||||
int (*p)[3];
|
||||
p = a; /* { dg-bogus "incompatible" "bad vla handling" { xfail *-*-* } } */
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user