* gcc.c-torture/compile/20000120-2.c: Use -fgnu89-inline.
[official-gcc.git] / gcc / testsuite / gcc.c-torture / compile / 20030704-1.c
blob101355c8bd15210110aaf4bc6d4b4105a286ae19
1 /* PR c/11428. */
3 /* fold_single_bit_test() failed to return a tree of the type that the
4 outer expression was looking for. Specifically, it returned a tree
5 whose type corresponded to QImode for !p->m, but the desired result
6 type was int, which corresponded to SImode. emit_move_insn() later
7 tried to copy a reg:QI to reg:SI, causing an ICE. */
9 struct s {
10 int m : 1;
13 int
14 foo (struct s *p)
16 return !p->m;