summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.jason/crash1.C
blob: 078f349ce430dce7edad94b596054355c79fa85d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// { dg-do assemble  }
// Bug: g++ dies on this input.

class Sample
  {
 public:
  int operator <<(const char *c);
  };

extern Sample sample;

struct Simple
  {
  int a;
  };

extern "C" void get_it();

class Test
  {
 private:
  void test();
  friend void get_it();
  };

void Test::test()
  {
  sample << "hello";
  }