gcc/testsuite/g++.dg/modules/merge-19.h
raw| 1 | // PR c++/121238 |
| 2 | |
| 3 | inline void inc(const char*& __first) { |
| 4 | ++__first; |
| 5 | } |
| 6 | |
| 7 | template <typename = void> |
| 8 | bool parse_integer(const char *first) { |
| 9 | const char *start = first; |
| 10 | inc(first); |
| 11 | return first != start; |
| 12 | } |
| 13 | template bool parse_integer<void>(const char*); |
| 14 | |
| 15 | |
| 16 | struct S { ~S() {} int x; }; |
| 17 | template <typename = void> |
| 18 | bool take_by_invisiref(S s) { |
| 19 | return s.x == 5; |
| 20 | } |
| 21 | template bool take_by_invisiref<void>(S); |