aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/arc/loop-5.cpp
blob: b9b188da61d36824d0c548f1f463d419ed22b021 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* { dg-do compile } */
/* { dg-options "-O2 -g" } */

/* Check if gcc splits a call from its CALL_ARG_LOCATION note.  If so,
   we get an ICE in dwarf2out_var_location.  */

typedef void Trans_NS_std_new_handler();
void *operator new(unsigned)
{
  void *p;
  while (__builtin_expect(p == 0, false))
    {
      Trans_NS_std_new_handler handler;
      try {
	handler();
      } catch (int) {
      }
    }
  return (void*) 0xdead;
}