Update ChangeLog and version files for release
[official-gcc.git] / gcc / testsuite / g++.dg / template / for1.C
blobdc33afcdaec4a6cc2904a3699e2559af30ed2a42
1 // PR c++/47388
2 // { dg-do compile }
3 // { dg-options "-fno-for-scope" }
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> ();