Debian Codegraph @

gcc/testsuite/gcc.c-torture/execute/bitfld-signed1-1.c

raw
1 /* PR tree-optimization/114666 */
2 /* We used to miscompile this to be always aborting
3 due to the use of the signed 1bit into the COND_EXPR. */
4
5 struct {
6 signed a : 1;
7 } b = {-1};
8 char c;
9 int main()
10 {
11 if ((b.a ^ 1UL) < 3)
12 __builtin_abort();
13 }