diff options
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.other/crash34.C')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.other/crash34.C | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.other/crash34.C b/gcc/testsuite/g++.old-deja/g++.other/crash34.C new file mode 100644 index 000000000..4e3c30a9a --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.other/crash34.C @@ -0,0 +1,23 @@ +// { dg-do assemble } +// Origin: Jakub Jelinek <jakub@redhat.com> + + +class v +{ + double x, y; +public: + v(); +}; + +class w : public v { +public : + static const w X; + w(); +}; + +void bar(w x); + +void foo() +{ + bar(w::X); +} |