diff options
author | Jason Merrill <jason@redhat.com> | 2016-07-18 17:13:41 -0400 |
---|---|---|
committer | Jason Merrill <jason@redhat.com> | 2016-07-19 02:10:54 -0400 |
commit | d553ba6fcbdc4b0526aa6e855d72032c44fc56c6 (patch) | |
tree | 2c4d25f0283392809a2dc348c24b1e4c3128a10b | |
parent | c536c71093b19ae11294ca7f5ce753dcdf2f4445 (diff) | |
download | gcc-d553ba6fcbdc4b0526aa6e855d72032c44fc56c6.tar.gz |
Test for EXPR_CONSTR case.
-rw-r--r-- | gcc/testsuite/g++.dg/concepts/req19.C | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/concepts/req19.C b/gcc/testsuite/g++.dg/concepts/req19.C new file mode 100644 index 00000000000..0564b0ce8b0 --- /dev/null +++ b/gcc/testsuite/g++.dg/concepts/req19.C @@ -0,0 +1,13 @@ +// { dg-options "-std=c++1z -fconcepts" } + +struct B +{ + template <class T> void f(T t) + requires requires (T tt) { tt; } + { } +}; + +int main() +{ + B().f(42); +} |