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 00000000000..6db610c5010 --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.jason/access10.C @@ -0,0 +1,14 @@ +// 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. +// Build don't link: + +class X +{ + X (int); + static X foo; +public: + void dummy(); +}; + +X X::foo = 9; |