mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
4cc501bcfd
C++ compilers are optional. Skip C++ tests when they are absent.
9 lines
155 B
C++
9 lines
155 B
C++
#include "ruby.h"
|
|
#include <cstddef>
|
|
|
|
struct T {
|
|
char _;
|
|
double t;
|
|
};
|
|
|
|
RBIMPL_STATIC_ASSERT(RUBY_ALIGNOF, RUBY_ALIGNOF(double) == offsetof(T, t));
|