gcc/testsuite/g++.dg/modules/concept-10_a.H
raw| 1 | // Also test header modules |
| 2 | // PR c++/113405 |
| 3 | // { dg-additional-options "-fmodule-header" } |
| 4 | // { dg-require-effective-target c++20 } |
| 5 | // { dg-module-cmi {} } |
| 6 | |
| 7 | template <typename> |
| 8 | concept foo = false; |
| 9 | |
| 10 | template <typename> |
| 11 | concept bar = true; |
| 12 | |
| 13 | template <typename T> |
| 14 | struct corge {}; |
| 15 | |
| 16 | template <foo F> |
| 17 | struct corge<F> {}; |
| 18 | |
| 19 | template <bar B> |
| 20 | struct corge<B> { |
| 21 | using alias = int; |
| 22 | }; |
| 23 | |
| 24 | template <typename T> |
| 25 | using corge_alias = corge<T>::alias; |