gcc/testsuite/g++.dg/cpp2a/concepts-partial-spec.C
raw| 1 | // { dg-do compile { target c++17_only } } |
| 2 | // { dg-options "-fconcepts" } |
| 3 | |
| 4 | // Check that constraints don't break unconstrained partial |
| 5 | // specializations. |
| 6 | |
| 7 | template<typename T> |
| 8 | struct S { }; |
| 9 | |
| 10 | template<typename T> |
| 11 | struct S<T*> { }; |
| 12 | |
| 13 | template<> |
| 14 | struct S<int> { }; |
| 15 | |
| 16 | int main() { } |