1// { dg-do assemble } 2// Bug: g++ dies on this input. 3 4class Sample 5 { 6 public: 7 int operator <<(const char *c); 8 }; 9 10extern Sample sample; 11 12struct Simple 13 { 14 int a; 15 }; 16 17extern "C" void get_it(); 18 19class Test 20 { 21 private: 22 void test(); 23 friend void get_it(); 24 }; 25 26void Test::test() 27 { 28 sample << "hello"; 29 } 30