Commit 12eac81a by Jason Merrill

reorganize

From-SVN: r46125
parent 7c4577d9
...@@ -5,8 +5,9 @@ eh Tests for exception handling. ...@@ -5,8 +5,9 @@ eh Tests for exception handling.
ext Tests for GNU language extensions. ext Tests for GNU language extensions.
inherit Tests for inheritance -- virtual functions, multiple inheritance, etc. inherit Tests for inheritance -- virtual functions, multiple inheritance, etc.
init Tests for initialization semantics, constructors/destructors, etc. init Tests for initialization semantics, constructors/destructors, etc.
lookup Tests for lookup semantics, namespaces, etc. lookup Tests for lookup semantics, namespaces, using, etc.
overload Tests for overload resolution and conversions. overload Tests for overload resolution and conversions.
parse Tests for parsing.
rtti Tests for run-time type identification (typeid, dynamic_cast, etc.) rtti Tests for run-time type identification (typeid, dynamic_cast, etc.)
template Tests for templates. template Tests for templates.
warn Tests for compiler warnings. warn Tests for compiler warnings.
......
// Test that completing an array declared with a typedef doesn't change
// the typedef.
// { dg-do run }
typedef int iArr[];
const iArr array4={
{1},{2},{3},{4}
};
const iArr array3={
{1},{2},{3}
};
const iArr array5={
{1},{2},{3},{4},{5}
};
int main()
{
if (sizeof (array4)/sizeof (array4[0]) != 4
|| sizeof (array3)/sizeof (array3[0]) != 3
|| sizeof (array5)/sizeof (array5[0]) != 5)
return 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