OSDN Git Service

* g++.dg/ext/label13.C: Move constructor body out of class.
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 5 Feb 2010 22:17:17 +0000 (22:17 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 5 Feb 2010 22:17:17 +0000 (22:17 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@156530 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/ext/label13.C

index f7a43f5..1248e1d 100644 (file)
@@ -1,3 +1,7 @@
+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
index 5f3c0f5..931263a 100644 (file)
@@ -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;