Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/c-c++-common/gomp/pr83977-1.c @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | |
children |
rev | line source |
---|---|
131 | 1 /* PR middle-end/83977 */ |
2 /* { dg-do compile } */ | |
3 /* { dg-additional-options "-O2 -w" } */ | |
4 | |
5 struct S { int a, b, c; }; | |
6 | |
7 #pragma omp declare simd uniform(z) linear(v:1) | |
8 __attribute__((noinline)) static int | |
9 foo (int x, int y, struct S z, int u, int v) | |
10 { | |
11 return x + y + z.a; | |
12 } | |
13 | |
14 int | |
15 bar (int x, int y, int z) | |
16 { | |
17 struct S s = { z, 1, 1 }; | |
18 return foo (x, y, s, 0, 0); | |
19 } |