Files
swift-mirror/test/Interop/Cxx/static/Inputs/constexpr-static-member-var-errors.h
zoecarver 794c0ea1f0 [cxx-interop] Don't crash when importing invalid decl.
If we see an invalid decl, rather than potentially crashing, simply
bail.
2021-03-19 11:38:18 -07:00

14 lines
278 B
C++

template <class T>
struct GetTypeValue {
static constexpr const bool value = T::value;
};
using Invalid1 = GetTypeValue<int>;
template <class T>
struct GetTypeValueInline {
inline static constexpr const bool value = T::value;
};
using Invalid2 = GetTypeValueInline<int>;