diff options
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.jason/crash1.C')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.jason/crash1.C | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.jason/crash1.C b/gcc/testsuite/g++.old-deja/g++.jason/crash1.C new file mode 100644 index 000000000..078f349ce --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.jason/crash1.C @@ -0,0 +1,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"; + } |