gcc/testsuite/g++.dg/ext/underlying_type13.C
raw| 1 | // Verify when substituting __underlying_type its cv-quals are carried over. |
| 2 | // { dg-do compile { target c++11 } } |
| 3 | |
| 4 | template<class T> using const_underlying_type_t = const __underlying_type(T); |
| 5 | enum A { a }; |
| 6 | using type = const_underlying_type_t<A>; |
| 7 | using type = const __underlying_type(A); |