4 static foo& get_singleton () { return s_singleton; }
7 static foo s_singleton;
10 foo & test_access_singleton ()
12 return foo::s_singleton; // { dg-error ".foo foo::s_singleton. is private within this context" }
13 // { dg-message "declared private here" "" { target *-*-* } 7 }
14 // We don't yet support generating a fix-it hint for this case.