]> oss.titaniummirror.com Git - msp430-gcc.git/blobdiff - libgomp/testsuite/libgomp.c/shared-3.c
Imported gcc-4.4.3
[msp430-gcc.git] / libgomp / testsuite / libgomp.c / shared-3.c
diff --git a/libgomp/testsuite/libgomp.c/shared-3.c b/libgomp/testsuite/libgomp.c/shared-3.c
new file mode 100644 (file)
index 0000000..494a970
--- /dev/null
@@ -0,0 +1,19 @@
+/* { dg-do run } */
+
+void abort (void);
+
+int main()
+{
+  int x;
+  int *p;
+
+  p = &x;
+
+  #pragma omp parallel
+    {
+      if (p != &x)
+        abort ();
+    }
+
+  return 0;
+}