Commit 55097f65 by Andreas Schwab Committed by Andreas Schwab

* g++.dg/cpp0x/initlist86.C (main): Initialize i.

From-SVN: r211257
parent 63e70d3c
2014-06-05 Andreas Schwab <schwab@suse.de>
* g++.dg/cpp0x/initlist86.C (main): Initialize i.
2014-06-05 Marek Polacek <polacek@redhat.com> 2014-06-05 Marek Polacek <polacek@redhat.com>
PR c/49706 PR c/49706
......
...@@ -11,7 +11,7 @@ extern "C" int printf (const char *, ...); ...@@ -11,7 +11,7 @@ extern "C" int printf (const char *, ...);
int main() int main()
{ {
int i; int i = 0;
A a{i++,i++}; A a{i++,i++};
if (a.i != 0 || a.j != 1) if (a.i != 0 || a.j != 1)
__builtin_abort(); __builtin_abort();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment