xref: /openbsd-src/gnu/usr.bin/gcc/gcc/testsuite/g++.old-deja/g++.other/crash34.C (revision dda2819751e49c83612958492e38917049128b41)
1 // Build don't link:
2 // Origin: Jakub Jelinek <jakub@redhat.com>
3 
4 // crash test - XFAIL *-*-*
5 
6 class v
7 {
8     double x, y;
9 public:
10     v();
11 };
12 
13 class w : public v {
14 public :
15     static const w X;
16     w();
17 };
18 
19 void bar(w x);
20 
21 void foo()
22 {
23   bar(w::X);
24 }
25