2018-11-07 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / g++.dg / torture / ipa-cp-1.C
blob37c046d87b4e2803bcb783a3cc4b101fd1c40fa6
1 /* { dg-do compile } */
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.
8 int&  f(int&);
9 inline void _M_reset(int &_M_vbp) throw()
11   f(_M_vbp);
13 extern int _S_last_request;
14 void _M_allocate_single_object() throw()
16   _M_reset(_S_last_request);
17   _M_reset(_S_last_request);