Debian Codegraph @

gcc/testsuite/g++.dg/cpp0x/friend3.C

raw
1 // PR c++/84691
2 // { dg-do compile { target c++11 } }
3
4 template<typename>
5 struct a {
6 unsigned b = [] {
7 union {
8 friend void c() {} // { dg-error "local class" }
9 }; // { dg-error "no members" }
10 };
11 };