Commit 373bd0fa by Richard Sandiford Committed by Richard Sandiford

* g++.dg/init/array2.C: New test.

From-SVN: r47009
parent fe5b6c1c
2001-11-14 Richard Sandiford <rsandifo@redhat.com>
* g++.dg/init/array2.C: New test.
2001-11-14 Alexandre Oliva <aoliva@redhat.com>
* gcc.c-torture/execute/20010122-1.c: Prevent unwanted inlining.
......
// Check that the type of an array is set correctly when flat initializers
// are used.
// { dg-do compile }
struct s { int a; int b; };
struct s x[] = { 1, 2, 3, 4 };
int y[sizeof (x) == 2 * sizeof (x[0])? 1 : -1];
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment