aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/tsan/pr90208-2.c
blob: c3823d0a400efd45165526c5409058af8dc34f8d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* PR tree-optimization/90208 */
/* { dg-do compile } */
/* { dg-options "-O2 -fexceptions -fsanitize=thread" } */

void *b[5];
void foo (void);

void
bar (int d)
{
  while (d)
    foo ();
}

void
baz (void)
{
  bar (2);
  __builtin_setjmp (b);
}