diff options
author | Jason Merrill <jason@gcc.gnu.org> | 2001-10-09 11:44:25 -0400 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2001-10-09 11:44:25 -0400 |
commit | 12eac81ab0ea8146723271aca4838a4e09fc645d (patch) | |
tree | 9d49cfabddb6ce2db831399066dae1454cde2602 /gcc | |
parent | 7c4577d93a1dd9589b1829cd5e504c33dc5ed222 (diff) | |
download | gcc-12eac81ab0ea8146723271aca4838a4e09fc645d.zip gcc-12eac81ab0ea8146723271aca4838a4e09fc645d.tar.gz gcc-12eac81ab0ea8146723271aca4838a4e09fc645d.tar.bz2 |
reorganize
From-SVN: r46125
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/g++.dg/README | 3 | ||||
-rw-r--r-- | gcc/testsuite/g++.dg/init/array1.C | 26 | ||||
-rw-r--r-- | gcc/testsuite/g++.dg/lookup/using2.C (renamed from gcc/testsuite/g++.dg/other/using-declaration.C) | 0 | ||||
-rw-r--r-- | gcc/testsuite/g++.dg/parse/angle-bracket.C (renamed from gcc/testsuite/g++.dg/other/parse-angle-bracket.C) | 0 |
4 files changed, 28 insertions, 1 deletions
diff --git a/gcc/testsuite/g++.dg/README b/gcc/testsuite/g++.dg/README index 318b819..edf1d5a 100644 --- a/gcc/testsuite/g++.dg/README +++ b/gcc/testsuite/g++.dg/README @@ -5,8 +5,9 @@ eh Tests for exception handling. ext Tests for GNU language extensions. inherit Tests for inheritance -- virtual functions, multiple inheritance, 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. +parse Tests for parsing. rtti Tests for run-time type identification (typeid, dynamic_cast, etc.) template Tests for templates. warn Tests for compiler warnings. diff --git a/gcc/testsuite/g++.dg/init/array1.C b/gcc/testsuite/g++.dg/init/array1.C new file mode 100644 index 0000000..8618e1e --- /dev/null +++ b/gcc/testsuite/g++.dg/init/array1.C @@ -0,0 +1,26 @@ +// 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; +} diff --git a/gcc/testsuite/g++.dg/other/using-declaration.C b/gcc/testsuite/g++.dg/lookup/using2.C index aac3342..aac3342 100644 --- a/gcc/testsuite/g++.dg/other/using-declaration.C +++ b/gcc/testsuite/g++.dg/lookup/using2.C diff --git a/gcc/testsuite/g++.dg/other/parse-angle-bracket.C b/gcc/testsuite/g++.dg/parse/angle-bracket.C index 9c1f247..9c1f247 100644 --- a/gcc/testsuite/g++.dg/other/parse-angle-bracket.C +++ b/gcc/testsuite/g++.dg/parse/angle-bracket.C |