Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/c-c++-common/gomp/simd4.c @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | |
children |
rev | line source |
---|---|
111 | 1 /* { dg-do compile } */ |
2 /* { dg-options "-fopenmp" } */ | |
3 /* { dg-additional-options "-std=c99" { target c } } */ | |
4 | |
5 struct S *p; /* { dg-message "forward declaration" "" { target c++ } } */ | |
6 float f; | |
7 int j; | |
8 | |
9 void | |
10 foo (void) | |
11 { | |
12 #pragma omp simd linear(p) linear(f : 1) | |
13 /* { dg-error "linear clause applied to" "" { target *-*-* } .-1 } */ | |
14 /* { dg-error "(incomplete|undefined) type" "" { target *-*-* } .-2 } */ | |
15 for (int i = 0; i < 10; i++) | |
16 ; | |
17 #pragma omp simd linear(j : 7.0) /* { dg-error "step expression must be integral" } */ | |
18 for (int i = 0; i < 10; i++) | |
19 ; | |
20 } | |
21 |