gcc/testsuite/g++.dg/torture/ipa-cp-1.C
raw| 1 | /* { dg-do compile } */ |
| 2 | |
| 3 | // With IPA-CP, this caused a problem on darwin, where |
| 4 | // _M_reset is being cloned, it was still being marked |
| 5 | // as weak and then we had to change the calls to the |
| 6 | // newly marked function for the non throwing behavior. |
| 7 | |
| 8 | int& f(int&); |
| 9 | inline void _M_reset(int &_M_vbp) throw() |
| 10 | { |
| 11 | f(_M_vbp); |
| 12 | } |
| 13 | extern int _S_last_request; |
| 14 | void _M_allocate_single_object() throw() |
| 15 | { |
| 16 | _M_reset(_S_last_request); |
| 17 | _M_reset(_S_last_request); |
| 18 | } |