mirror of git://gcc.gnu.org/git/gcc.git
* g++.dg/cpp1z/init-statement9.C: New test.
From-SVN: r240824
This commit is contained in:
parent
9519da989c
commit
f779aeb8af
|
|
@ -1,3 +1,7 @@
|
||||||
|
2016-10-06 Marek Polacek <polacek@redhat.com>
|
||||||
|
|
||||||
|
* g++.dg/cpp1z/init-statement9.C: New test.
|
||||||
|
|
||||||
2016-10-05 Andrew Senkevich <andrew.senkevich@intel.com>
|
2016-10-05 Andrew Senkevich <andrew.senkevich@intel.com>
|
||||||
|
|
||||||
* gcc.target/i386/pcommit-1.c: Deleted.
|
* gcc.target/i386/pcommit-1.c: Deleted.
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,17 @@
|
||||||
|
// { dg-options -std=c++1z }
|
||||||
|
|
||||||
|
void
|
||||||
|
f ()
|
||||||
|
{
|
||||||
|
{
|
||||||
|
int c;
|
||||||
|
if (int c = 2; c != 0)
|
||||||
|
int c = 4; // { dg-error "redeclaration" }
|
||||||
|
}
|
||||||
|
|
||||||
|
if (int c = 2; c != 0)
|
||||||
|
int c = 4; // { dg-error "redeclaration" }
|
||||||
|
|
||||||
|
if (int c = 2; int c = 6) // { dg-error "redeclaration" }
|
||||||
|
int c = 4; // { dg-error "redeclaration" }
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue