aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/gupc/put-df-relaxed.upc
blob: 8e3963e1c893d04892b67bfe10746c3f3de40bd7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* { dg-do compile } */
/* { dg-options "-fdump-tree-original" } */

/* The base address of the UPC shared section */
extern char __upc_shared_start[1];


/* UPC runtime remote access prototype */
extern void __putdf2 (upc_shared_ptr_t, double);

relaxed shared double x;

void p () {
  x = 1;
}

/* { dg-final { scan-tree-dump-times "putdf2" 1 "original" } } */
/* { dg-final { scan-tree-dump-times "get|put" 1 "original" } } */