------- Comment #24 from jakub at gcc dot gnu dot org 2010-01-16 16:05 ------- In the preprocessor you can do #if __SIZEOF_DOUBLE__ == 4 * __SIZEOF_SHORT__ (and in #else just have a int main (void) { return 0; }). Or you could in main do if (sizeof (double) != 4 * sizeof (short)) return 0;
-- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42691