Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/g++.dg/other/accessor-fixits-3.C @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | |
children |
line wrap: on
line source
class foo { public: static foo& get_singleton () { return s_singleton; } private: static foo s_singleton; }; foo & test_access_singleton () { return foo::s_singleton; // { dg-error ".foo foo::s_singleton. is private within this context" } // { dg-message "declared private here" "" { target *-*-* } 7 } // We don't yet support generating a fix-it hint for this case. }