aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/c-c++-common/unroll-7.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/c-c++-common/unroll-7.c')
-rw-r--r--gcc/testsuite/c-c++-common/unroll-7.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/gcc/testsuite/c-c++-common/unroll-7.c b/gcc/testsuite/c-c++-common/unroll-7.c
new file mode 100644
index 00000000000..8332e9f983c
--- /dev/null
+++ b/gcc/testsuite/c-c++-common/unroll-7.c
@@ -0,0 +1,11 @@
+/* { dg-do compile } */
+/* { dg-options "-O -fno-tree-dominator-opts" } */
+
+int nv;
+
+void test (void)
+{
+ #pragma GCC unroll 2
+ for (nv = 0; nv < 1; ++nv)
+ {}
+}