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> 2010-02-03 Jason Merrill <jason@redhat.com>
PR c++/42870 PR c++/42870
......
...@@ -5,13 +5,15 @@ ...@@ -5,13 +5,15 @@
int i; int i;
struct C struct C
{ {
C() C();
{ };
C::C()
{
static void *labelref = &&label; static void *labelref = &&label;
goto *labelref; goto *labelref;
label: i = 1; label: i = 1;
} }
};
int main() int main()
{ {
......
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