blob: b1744b671826ed7742623e96c3cd516109e10e74 [file] [log] [blame]
/* Test for constant expressions: casts with integer overflow. PR
c/93241. */
/* { dg-do compile } */
/* { dg-options "-std=c99 -pedantic-errors" } */
#include <limits.h>
struct s { int a : (0 ? (_Bool) (INT_MAX + 1) : 1); };
struct t { int a : (0 ? (short) ((INT_MAX + 1) != 0) : 1); };