diff options
Diffstat (limited to 'gcc/testsuite/gcc.dg/gupc/cmp-pts-eq-diff-block-factor-2.upc')
-rw-r--r-- | gcc/testsuite/gcc.dg/gupc/cmp-pts-eq-diff-block-factor-2.upc | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/gupc/cmp-pts-eq-diff-block-factor-2.upc b/gcc/testsuite/gcc.dg/gupc/cmp-pts-eq-diff-block-factor-2.upc new file mode 100644 index 00000000000..a9a45289329 --- /dev/null +++ b/gcc/testsuite/gcc.dg/gupc/cmp-pts-eq-diff-block-factor-2.upc @@ -0,0 +1,16 @@ +/* { dg-do compile } + { dg-options "-fupc-threads=2" } */ + +/* The base address of the UPC shared section */ +extern char __upc_shared_start[1]; + + +shared int *p1; + +shared [20] int *p20; + +int +main () +{ + return p1 == p20; /* { dg-error "UPC does not allow comparison between pointers to shared with differing block sizes without a cast" } */ +} |