diff options
Diffstat (limited to 'gcc/testsuite/gcc.c-torture/compile/930217-1.c')
-rw-r--r-- | gcc/testsuite/gcc.c-torture/compile/930217-1.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.c-torture/compile/930217-1.c b/gcc/testsuite/gcc.c-torture/compile/930217-1.c index 70f4a4897c4..0f64a040712 100644 --- a/gcc/testsuite/gcc.c-torture/compile/930217-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/930217-1.c @@ -1,3 +1,8 @@ +/* The bit-field below would have a problem if __INT_MAX__ is too + small. */ +#if __INT_MAX__ < 2147483647 +int a; +#else double g (); typedef union { struct { @@ -12,3 +17,4 @@ f(x, n) ((s *)&x)->u.e -= n; x = g((double)x, -n); } +#endif |