aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/gupc/deprecated-barrier-notify-stmt.upc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gcc.dg/gupc/deprecated-barrier-notify-stmt.upc')
-rw-r--r--gcc/testsuite/gcc.dg/gupc/deprecated-barrier-notify-stmt.upc15
1 files changed, 15 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/gupc/deprecated-barrier-notify-stmt.upc b/gcc/testsuite/gcc.dg/gupc/deprecated-barrier-notify-stmt.upc
new file mode 100644
index 00000000000..f7ae570a6c2
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/gupc/deprecated-barrier-notify-stmt.upc
@@ -0,0 +1,15 @@
+/* ‘barrier_notify’ was supported in version 1.0 of the UPC specification,
+ it has been deprecated, use ‘upc_notify’ instead.
+ { dg-do compile }
+ { dg-options "-fupc-threads=2" } */
+
+/* The base address of the UPC shared section */
+extern char __upc_shared_start[1];
+
+
+
+int main()
+{
+ barrier_notify; /* { dg-error "'barrier_notify' was supported in version 1.0 of the UPC specification, it has been deprecated, use 'upc_notify' instead" } */
+ return 0;
+}