Mercurial > hg > CbC > CbC_gcc
comparison gcc/testsuite/c-c++-common/cilk-plus/AN/fp_triplet_values.c @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
68:561a7518be6b | 111:04ced10e8804 |
---|---|
1 /* { dg-do compile } */ | |
2 /* { dg-options "-fcilkplus" } */ | |
3 | |
4 float q; | |
5 | |
6 void func (int *x) | |
7 { | |
8 *x = 5; | |
9 } | |
10 | |
11 int main (void) | |
12 { | |
13 int array[10], array2[10]; | |
14 array2[:] = array[1.5:2]; /* { dg-error "start-index of array notation triplet is not an integer" } */ | |
15 array2[:] = array[1:2.32333333333]; /* { dg-error "length of array notation triplet is not an integer" } */ | |
16 array2[1:2:1.5] = array[:]; /* { dg-error "stride of array notation triplet is not an integer" } */ | |
17 func (&array2[1:2.34:3]); /* { dg-error "length of array notation triplet is not an integer" } */ | |
18 array2[1.43:9]++; /* { dg-error "start-index of array notation triplet is not an integer" } */ | |
19 array2[1:9.3]++; /* { dg-error "length of array notation triplet is not an integer" } */ | |
20 array2[1:9:0.3]++; /* { dg-error "stride of array notation triplet is not an integer" } */ | |
21 | |
22 ++array2[1:q:3]; /* { dg-error "length of array notation triplet is not an integer" } */ | |
23 array2[:] = array[q:1:3]; /* { dg-error "start-index of array notation triplet is not an integer" } */ | |
24 array2[:] = array[1:q:3]; /* { dg-error "length of array notation triplet is not an integer" } */ | |
25 array2[:] = array[1:3:q]; /* { dg-error "stride of array notation triplet is not an integer" } */ | |
26 func (&array2[1:q:3]); /* { dg-error "length of array notation triplet is not an integer" } */ | |
27 return 0; | |
28 } |