repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
C99 testsuite readiness: Compile more tests with -std=gnu89
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
gomp
/
pr88733.C
blob
f80de7ec480362d4c09b560863b6e1a63635861b
1
// PR lto/88733
2
// { dg-do compile }
3
// { dg-additional-options "-flto -ffat-lto-objects" { target lto } }
4
5
struct A { int f; } a;
6
7
__attribute__((noipa)) void
8
bar (A **x, int)
9
{
10
x[0] = &a;
11
}
12
13
int
14
foo (int n)
15
{
16
int g;
17
A *j[n];
18
bar (j, n);
19
#pragma omp parallel
20
#pragma omp single
21
g = j[0]->f;
22
return g;
23
}
24
25
int
26
main ()
27
{
28
foo (0);
29
}