FSF GCC merge 02/23/03
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.jason / crash1.C
blob298273490fc6f9abfeadb5c5d5a78019ecbcc4b2
1 // Bug: g++ dies on this input.
2 // Build don't link:
4 class Sample
5   {
6  public:
7   int operator <<(const char *c);
8   };
10 extern Sample sample;
12 struct Simple
13   {
14   int a;
15   };
17 extern "C" void get_it();
19 class Test
20   {
21  private:
22   void test();
23   friend void get_it();
24   };
26 void Test::test()
27   {
28   sample << "hello";
29   }