diff options
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.jason/access10.C')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.jason/access10.C | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.jason/access10.C b/gcc/testsuite/g++.old-deja/g++.jason/access10.C new file mode 100644 index 000000000..a8a2bb9fd --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.jason/access10.C @@ -0,0 +1,14 @@ +// { dg-do assemble } +// PRMS Id: 4839 +// Bug: The initializer of a static member of a class has the same acess +// rights as a member function. g++ doesn't realize that. + +class X +{ + X (int); + static X foo; +public: + void dummy(); +}; + +X X::foo = 9; |