Debian Codegraph @

gcc/testsuite/g++.dg/ext/stmtexpr16.C

raw
1 // PR c++/63455
2 // { dg-options "-std=gnu++11" }
3
4 int main()
5 {
6 int x = 0;
7
8 // without '+0', gcc 4.6 gives a different error (no ICE though)
9 decltype(({ int y = x; y; })+0) v1 = 0;
10 }