Debian Codegraph @

gcc/testsuite/g++.old-deja/g++.jason/crash1.C

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