repo.or.cz
/
gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Fortran: Fix PR 47485.
[gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
ubsan
/
pr83987-2.C
blob
a70b7b2850bbfbe3f9898803ab38f058a00dbdf1
1
// PR sanitizer/83987
2
// { dg-do compile { target fopenmp } }
3
// { dg-options "-fopenmp -fsanitize=vptr" }
4
5
struct A
6
{
7
int i;
8
};
9
10
struct B : virtual A
11
{
12
void foo();
13
};
14
15
void B::foo()
16
{
17
#pragma omp parallel
18
{
19
#pragma omp sections lastprivate (i)
20
{
21
i = 0;
22
}
23
}
24
}