blob: 2510181725c6e9279a704ff7cc9ac54ef2b451a5 [file] [log] [blame]
// { dg-do compile { target c++11 } }
// { dg-options "-Wno-pedantic" }
template<unsigned u> struct size_c{ static constexpr unsigned value = u; };
template<class T> auto get_align(T t) -> size_c<alignof(t)>;
template<class T> auto get_align(T t) -> size_c<alignof(t)>;
static_assert(decltype(get_align('a'))::value == 1u, "");