URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [pr42611.c] - Rev 689
Compare with Previous | Blame | View Log
/* PR other/42611 */ /* { dg-do compile } */ /* { dg-options "" } */ #define L \ (sizeof (__SIZE_TYPE__) == 1 ? __SCHAR_MAX__ \ : sizeof (__SIZE_TYPE__) == sizeof (short) ? __SHRT_MAX__ \ : sizeof (__SIZE_TYPE__) == sizeof (int) ? __INT_MAX__ \ : sizeof (__SIZE_TYPE__) == sizeof (long) ? __LONG_MAX__ \ : sizeof (__SIZE_TYPE__) == sizeof (long long) ? __LONG_LONG_MAX__ \ : __INTMAX_MAX__) struct S { int a; char b[L]; }; void foo (void) { struct S s; /* { dg-error "is too large" } */ asm volatile ("" : : "r" (&s)); }