Commit c1f8423c by Jason Merrill Committed by Jason Merrill

* g++.dg/ext/label13.C: Move constructor body out of class.

From-SVN: r156530
parent b2469a9b
2010-02-05 Jason Merrill <jason@redhat.com>
* g++.dg/ext/label13.C: Move constructor body out of class.
2010-02-03 Jason Merrill <jason@redhat.com>
PR c++/42870
......
......@@ -5,14 +5,16 @@
int i;
struct C
{
C()
{
static void *labelref = &&label;
goto *labelref;
label: i = 1;
}
C();
};
C::C()
{
static void *labelref = &&label;
goto *labelref;
label: i = 1;
}
int main()
{
C c;
......
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