aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr98331.c
blob: 951b7586a28b82a4ee33be9f6d638b5502d4278a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* PR debug/98331 */
/* { dg-do compile } */
/* { dg-options "-g -O2 -fcompare-debug" } */
/* { dg-additional-options "-march=x86-64" { target { i?86-*-* x86_64-*-* } } } */

void bar (const char *);
unsigned long long x;

void
foo (void)
{
  int a = 1;
  bar ("foo");
  int b = 2;
  __atomic_fetch_add (&x, 1, 0);
  int c = 3;
  __builtin_unreachable ();
}