--- /dev/null
+// PR c++/83489
+// { dg-options "-Wabi" }
+
+struct A
+{
+ A foo(void i = 0); // { dg-error "incomplete type|invalid use" }
+};
+
+void bar()
+{
+ A().foo();
+}
+
+A A::foo(void i) // { dg-error "incomplete type|invalid use" }
+{
+ return A();
+}
+++ /dev/null
-// PR c++/83489
-// { dg-options "-Wabi" }
-
-struct A
-{
- A foo(void i = 0); // { dg-error "incomplete type|invalid use" }
-};
-
-void bar()
-{
- A().foo();
-}
-
-A A::foo(void i) // { dg-error "incomplete type|invalid use" }
-{
- return A();
-}