summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/ipa/pr43695.C
blob: a01478324b0b2ce06eb4902aa6431d89f42dd4fb (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 "-fipa-cp -fipa-cp-clone" } */

extern void baz(int) __attribute__ ((noreturn));

struct S {
  ~S();
};

__attribute__ ((noreturn, noinline))
void bar(int i)
{
  baz(i);
}

void foo()
{
  S s;
  bar(0);
}