gcc/testsuite/g++.old-deja/g++.other/crash16.C
raw| 1 | // { dg-do assemble } |
| 2 | // { dg-options "-O2" } |
| 3 | // Origin: scott snyder <[email protected]> |
| 4 | |
| 5 | |
| 6 | void _S_initialize(); |
| 7 | |
| 8 | class locale |
| 9 | { |
| 10 | public: |
| 11 | locale() throw() |
| 12 | { _S_initialize (); } |
| 13 | }; |
| 14 | |
| 15 | void foo(const locale& __loc); |
| 16 | |
| 17 | void print (const int&) |
| 18 | { |
| 19 | foo(locale()); |
| 20 | } |