]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/g++.dg/cpp1z/init-statement8.C
Fix last commit.
[thirdparty/gcc.git] / gcc / testsuite / g++.dg / cpp1z / init-statement8.C
1 // { dg-options -std=c++1z }
2
3 int
4 f ()
5 {
6 if (int c = 5;
7 int c = 5) // { dg-error "redeclaration" }
8 return 5;
9 return 0;
10 }