Debian Codegraph @

gcc/testsuite/g++.dg/tsan/pr80110.C

raw
1 // PR sanitizer/80110
2 // { dg-do compile }
3 // { dg-options "-fnon-call-exceptions -fsanitize=thread" }
4
5 struct A
6 {
7 int b ();
8 void c () { static int d = b (); }
9 };
10
11 void
12 foo ()
13 {
14 A e;
15 e.c ();
16 }