diff options
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.brendan/init9.C')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.brendan/init9.C | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/init9.C b/gcc/testsuite/g++.old-deja/g++.brendan/init9.C new file mode 100644 index 000000000..e22821022 --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.brendan/init9.C @@ -0,0 +1,11 @@ +// { dg-do assemble } +// GROUPS passed initialization +int FALSE = 0; +class X { +public: + static int FALSE; +}; + +// The compiler should NOT complain about redeclaration of the global +// `FALSE' with this declaration...grokvardecl shouldn't be doing that. +int X::FALSE = 0; |