diff options
Diffstat (limited to 'gcc/testsuite/g++.dg/cpp2a/concepts-partial-spec5.C')
-rw-r--r-- | gcc/testsuite/g++.dg/cpp2a/concepts-partial-spec5.C | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/cpp2a/concepts-partial-spec5.C b/gcc/testsuite/g++.dg/cpp2a/concepts-partial-spec5.C new file mode 100644 index 00000000000..f33f74969b7 --- /dev/null +++ b/gcc/testsuite/g++.dg/cpp2a/concepts-partial-spec5.C @@ -0,0 +1,12 @@ +// PR c++/67138 +// { dg-do compile { target c++2a } } + +template <class T> +concept Auto = true; + +template <Auto T> +struct test {}; + +template <Auto T> + requires requires (T t) { t + t; } +struct test<T> {}; |