ruby/ext/-test-/RUBY_ALIGNOF/cpp.cpp

10 строки
155 B
C++

#include "ruby.h"
#include <cstddef>
struct T {
char _;
double t;
};
RBIMPL_STATIC_ASSERT(RUBY_ALIGNOF, RUBY_ALIGNOF(double) == offsetof(T, t));