blob: 449487ad55d6b71e73734f9c6b24cdd5c3cdacee (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
/* { dg-do compile } */
int main()
{
int arr[20];
/* Reject array section in statement expression. */
#pragma omp target map( ({ int x = 5; arr[0:x]; }) )
/* { dg-error {expected '\]' before ':' token} "" { target *-*-* } .-1 } */
/* { dg-message {sorry, unimplemented: unsupported map expression} "" { target *-*-* } .-2 } */
{ }
return 0;
}
|