1 2 3 4 5 6 7 8 9 10 11 12 13 14
// { dg-do assemble } // make sure extern "C" friends work. extern "C" { void func(); } struct crash { int i; friend void func(); } a; void func() { a.i = 1; }