]> oss.titaniummirror.com Git - msp430-gcc.git/blobdiff - libgomp/testsuite/libgomp.c/nestedfn-2.c
Imported gcc-4.4.3
[msp430-gcc.git] / libgomp / testsuite / libgomp.c / nestedfn-2.c
diff --git a/libgomp/testsuite/libgomp.c/nestedfn-2.c b/libgomp/testsuite/libgomp.c/nestedfn-2.c
new file mode 100644 (file)
index 0000000..fdbbe0f
--- /dev/null
@@ -0,0 +1,20 @@
+/* { dg-do run } */
+
+extern void abort (void);
+
+int
+main (void)
+{
+  int i;
+  void
+  foo (void)
+  {
+#pragma omp master
+    i += 8;
+  }
+  i = 4;
+  foo ();
+  if (i != 12)
+    abort ();
+  return 0;
+}