1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/ext/-test-/RUBY_ALIGNOF/c.c

16 lines
250 B
C
Raw Normal View History

#include "ruby.h"
#include <stddef.h>
struct T {
char _;
double t;
};
RBIMPL_STATIC_ASSERT(RUBY_ALIGNOF, RUBY_ALIGNOF(double) == offsetof(struct T, t));
void
Init_RUBY_ALIGNOF(void)
{
// Windows linker mandates this symbol to exist.
}