coroutines, testsuite: Rename a test, NFC.
authorIain Sandoe <iain@sandoe.co.uk>
Sat, 4 Jul 2020 18:01:03 +0000 (19:01 +0100)
committerIain Sandoe <iain@sandoe.co.uk>
Sat, 4 Jul 2020 18:01:03 +0000 (19:01 +0100)
The test was committed with a placeholder name, this
renames it as described in the PR.

gcc/testsuite/ChangeLog:

* g++.dg/coroutines/pr9xxxx-mismatched-traits-and-promise-prev.C: Moved to...
* g++.dg/coroutines/pr94760-mismatched-traits-and-promise-prev.C: ...here.

gcc/testsuite/g++.dg/coroutines/pr94760-mismatched-traits-and-promise-prev.C [new file with mode: 0644]
gcc/testsuite/g++.dg/coroutines/pr9xxxx-mismatched-traits-and-promise-prev.C [deleted file]

diff --git a/gcc/testsuite/g++.dg/coroutines/pr94760-mismatched-traits-and-promise-prev.C b/gcc/testsuite/g++.dg/coroutines/pr94760-mismatched-traits-and-promise-prev.C
new file mode 100644 (file)
index 0000000..235b5e7
--- /dev/null
@@ -0,0 +1,29 @@
+// { dg-do compile  { target c++17 } }
+
+#include "coro.h"
+
+// Test that we get matching types to traits and promise param
+// preview.
+
+// A separate issue from allowing non-class return types.
+struct Fake {} ;
+
+template<typename R, typename CallOp, typename ...T>
+struct std::coroutine_traits<R, CallOp, T...> {
+    struct promise_type {
+        promise_type (CallOp op, T ...args) {}
+        Fake get_return_object() { return {}; }
+        std::suspend_always initial_suspend() { return {}; }
+        std::suspend_never final_suspend() { return {}; }
+        void return_void() {}
+        void unhandled_exception() {}
+    };
+};
+
+
+struct Foo
+{
+  Fake operator() (int a) {
+    co_return;
+  }
+};
diff --git a/gcc/testsuite/g++.dg/coroutines/pr9xxxx-mismatched-traits-and-promise-prev.C b/gcc/testsuite/g++.dg/coroutines/pr9xxxx-mismatched-traits-and-promise-prev.C
deleted file mode 100644 (file)
index 235b5e7..0000000
+++ /dev/null
@@ -1,29 +0,0 @@
-// { dg-do compile  { target c++17 } }
-
-#include "coro.h"
-
-// Test that we get matching types to traits and promise param
-// preview.
-
-// A separate issue from allowing non-class return types.
-struct Fake {} ;
-
-template<typename R, typename CallOp, typename ...T>
-struct std::coroutine_traits<R, CallOp, T...> {
-    struct promise_type {
-        promise_type (CallOp op, T ...args) {}
-        Fake get_return_object() { return {}; }
-        std::suspend_always initial_suspend() { return {}; }
-        std::suspend_never final_suspend() { return {}; }
-        void return_void() {}
-        void unhandled_exception() {}
-    };
-};
-
-
-struct Foo
-{
-  Fake operator() (int a) {
-    co_return;
-  }
-};