From: Neil Booth Date: Wed, 1 Jan 2003 00:38:07 +0000 (+0000) Subject: * g++.dg/parse/parse2.C: New test. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9b1e4260bdbb7bbfa4e33b0f30380a7d69237ffb;p=platform%2Fupstream%2Fgcc.git * g++.dg/parse/parse2.C: New test. From-SVN: r60726 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index c6d9a7b..8cbe760 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,5 +1,9 @@ 2003-01-01 Neil Booth + * g++.dg/parse/parse2.C: New test. + +2003-01-01 Neil Booth + * g++.dg/template/friend11.C: New test. 2003-01-01 Neil Booth diff --git a/gcc/testsuite/g++.dg/parse/parse2.C b/gcc/testsuite/g++.dg/parse/parse2.C new file mode 100644 index 0000000..80a9e38 --- /dev/null +++ b/gcc/testsuite/g++.dg/parse/parse2.C @@ -0,0 +1,8 @@ +/* PR c++/67 */ +/* { dg-do compile } */ + +template struct foo { + static const int bar [3]; +}; +// Used to fail if 2+1 rather than 3. +template const int foo::bar [2+1] = { 0, 0, 0 };