PR c++/85618 - ICE with initialized VLA.
[official-gcc.git] / gcc / testsuite / g++.dg / template / for1.C
blobebb444531e63b662697d45907bff28c4853448e0
1 // PR c++/47388
2 // { dg-do compile }
3 // { dg-options "-fno-for-scope -Wno-deprecated" }
5 template <int>
6 void
7 foo ()
9   int i;
10   for (i = 0; i < 16; i++)
11     ;
12   for (int j = 0; j < 16; j++)
13     ;
14   if (j != 16)
15     for (;;)
16       ;
19 void
20 bar ()
22   foo <0> ();