diff mbox series

C++ PATCH to add a test for c++/83644

Message ID 20180102160302.GC23422@redhat.com
State New
Headers show
Series C++ PATCH to add a test for c++/83644 | expand

Commit Message

Marek Polacek Jan. 2, 2018, 4:03 p.m. UTC
Another fixed PR, another additional test.

Tested on x86_64-linux, ok for trunk?

2018-01-02  Marek Polacek  <polacek@redhat.com>

	PR c++/83644
	* g++.dg/cpp1z/pr83644.C: New test.


	Marek

Comments

Nathan Sidwell Jan. 2, 2018, 4:31 p.m. UTC | #1
On 01/02/2018 11:03 AM, Marek Polacek wrote:
> Another fixed PR, another additional test.
> 
> Tested on x86_64-linux, ok for trunk?

yes, thanks

nathan
diff mbox series

Patch

diff --git gcc/testsuite/g++.dg/cpp1z/pr83644.C gcc/testsuite/g++.dg/cpp1z/pr83644.C
index e69de29bb2d..493d8c7cbe4 100644
--- gcc/testsuite/g++.dg/cpp1z/pr83644.C
+++ gcc/testsuite/g++.dg/cpp1z/pr83644.C
@@ -0,0 +1,12 @@ 
+// PR c++/83644
+// { dg-do compile }
+// { dg-options -std=c++17 }
+
+namespace std {
+template <typename> bool is_invocable_v;
+}
+template <typename F> auto compose(F) {
+  [](auto... objs) noexcept(std::is_invocable_v<decltype(objs)...>){};
+}
+
+auto f() { compose(3); }