blob: 58d3eb39aa00c8037e1fa099264cee29ee4673d2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
/* UPC does not allow comparisons between pointers to shared and
local pointers.
{ dg-do compile }
{ dg-options "-fupc-threads=2" } */
/* The base address of the UPC shared section */
extern char __upc_shared_start[1];
int x;
shared int v;
shared int *pts;
int *local_ptr;
int main (void)
{
local_ptr = &x;
pts = &v;
return pts < local_ptr; /* { dg-error "UPC does not allow comparisons between pointers to shared and local pointers" } */
}
|