gcc/testsuite/g++.dg/concepts/pr105061.C
raw| 1 | // PR c++/105061 |
| 2 | |
| 3 | template <typename T, int U, int V> |
| 4 | struct A { T : V, u : U; }; |
| 5 | template <int U, int V> |
| 6 | struct B { unsigned : V, u : U; }; |
| 7 | typedef unsigned uns; |
| 8 | template <int U, int V> |
| 9 | struct C { uns : V, u : U; }; |
| 10 | |
| 11 | A<unsigned int, 4, 5> a = { 13 }; |
| 12 | B<5, 6> b = { 26 }; |
| 13 | C<8, 9> c = { 42 }; |