blob: e573727c5f24e71d5f3b47f12d22723ac5f95154 [file] [log] [blame]
// PR c++/88115
// { dg-do compile { target c++11 } }
template<int __v>
struct integral_constant {
static constexpr int value = __v;
};
template <class T> using StdAlignOf = integral_constant<alignof(T)>;
template <class T> using GCCAlignOf = integral_constant<__alignof__(T)>;
static_assert(StdAlignOf<double>::value == alignof(double), "");
static_assert(GCCAlignOf<double>::value == __alignof__(double), "");