[PR c++/84702] ICE with default tmpl arg of overload set
[official-gcc.git] / gcc / testsuite / g++.dg / ext / unroll-2.C
blobe68cc3176751e7e1d5cc83faa3c7ce85538039fb
1 // { dg-do compile }
2 // { dg-options "-O2 -fdump-tree-cunrolli-details" }
3 // { dg-skip-if "range for" { *-*-* } { "-std=gnu++98" } { "" } }
5 void
6 foo (int (&a)[8], int *b, int *c)
8 #pragma GCC unroll 8
9   for (int i : a)
10     a[i] = b[i] * c[i];
13 // { dg-final { scan-tree-dump "note: loop with 8 iterations completely unrolled" "cunrolli" } }