Debian Codegraph @

gcc/testsuite/g++.dg/ubsan/pr83987.C

raw
1 // PR sanitizer/83987
2 // { dg-do compile { target fopenmp } }
3 // { dg-options "-fopenmp -fsanitize=vptr -O0" }
4
5 struct A { int i; };
6 struct B : virtual A { void foo (); };
7
8 void
9 B::foo ()
10 {
11 #pragma omp sections lastprivate (i)
12 {
13 i = 0;
14 }
15 }