gcc/testsuite/g++.dg/modules/horcrux-1_a.C
raw| 1 | // { dg-additional-options -fmodules-ts } |
| 2 | |
| 3 | export module foo; |
| 4 | // { dg-module-cmi foo } |
| 5 | |
| 6 | export |
| 7 | template<typename _Tp, _Tp __v> |
| 8 | struct integral_constant |
| 9 | {}; |
| 10 | |
| 11 | export |
| 12 | template<bool __v> |
| 13 | using __bool_constant = integral_constant<bool, __v>; |
| 14 | |
| 15 | export |
| 16 | template<typename _Tp, typename... _Args> |
| 17 | struct __is_constructible_impl |
| 18 | : public __bool_constant<__is_constructible(_Tp, _Args...)> |
| 19 | { }; |
| 20 |