diff --git a/test/language.support/support.types/offsetof.pass.cpp b/test/language.support/support.types/offsetof.pass.cpp index 758f2152..e36ac229 100644 --- a/test/language.support/support.types/offsetof.pass.cpp +++ b/test/language.support/support.types/offsetof.pass.cpp @@ -13,6 +13,14 @@ #error offsetof not defined #endif +struct A +{ + int x; +}; + int main() { +#if (__has_feature(cxx_noexcept)) + static_assert(noexcept(offsetof(A, x)), ""); +#endif }