gcc/testsuite/gcc.target/arc/loop-5.cpp
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-options "-O2 -g" } */ |
| 3 | |
| 4 | /* Check if gcc splits a call from its CALL_ARG_LOCATION note. If so, |
| 5 | we get an ICE in dwarf2out_var_location. */ |
| 6 | |
| 7 | typedef void Trans_NS_std_new_handler(); |
| 8 | void *operator new(unsigned) |
| 9 | { |
| 10 | void *p; |
| 11 | while (__builtin_expect(p == 0, false)) |
| 12 | { |
| 13 | Trans_NS_std_new_handler handler; |
| 14 | try { |
| 15 | handler(); |
| 16 | } catch (int) { |
| 17 | } |
| 18 | } |
| 19 | return (void*) 0xdead; |
| 20 | } |