aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/gomp/pr27573.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.9/gcc/testsuite/gcc.dg/gomp/pr27573.c')
-rw-r--r--gcc-4.9/gcc/testsuite/gcc.dg/gomp/pr27573.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/testsuite/gcc.dg/gomp/pr27573.c b/gcc-4.9/gcc/testsuite/gcc.dg/gomp/pr27573.c
new file mode 100644
index 000000000..239e9913c
--- /dev/null
+++ b/gcc-4.9/gcc/testsuite/gcc.dg/gomp/pr27573.c
@@ -0,0 +1,19 @@
+/* PR middle-end/27573 */
+/* { dg-do compile } */
+/* { dg-require-profiling "-fprofile-generate" } */
+/* { dg-options "-O2 -fopenmp -fprofile-generate" } */
+
+extern int puts (const char *);
+
+int
+main (void)
+{
+ int i, j = 8;
+#pragma omp parallel
+ {
+ puts ("foo");
+ for (i = 1; i < j - 1; i++)
+ ;
+ }
+ return 0;
+}