diff options
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.brendan/init6.C')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.brendan/init6.C | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/init6.C b/gcc/testsuite/g++.old-deja/g++.brendan/init6.C new file mode 100644 index 00000000000..e49758adf1a --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.brendan/init6.C @@ -0,0 +1,15 @@ +// Build don't link: +// GROUPS passed initialization +class Tag { +public: + Tag(int i):value(i){} + int value; +}; + +extern const Tag myTag; +extern const Tag myTag=9; + +// The compiler should not issue an error on this line; expand_static_init +// should be checking that there's no initializer for this line, and thus +// doesn't need to produce an error. +extern const Tag myTag; |