2018-11-07 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / g++.dg / tsan / pr80110.C
blobbee19e50d309d78b3648488646aa5a094351e733
1 // PR sanitizer/80110
2 // { dg-do compile }
3 // { dg-options "-fnon-call-exceptions -fsanitize=thread" }
5 struct A
7   int b ();
8   void c () { static int d = b (); }
9 };
11 void
12 foo ()
14   A e;
15   e.c ();