Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.c-torture/compile/20030704-1.c @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
/* PR c/11428. */ /* fold_single_bit_test() failed to return a tree of the type that the outer expression was looking for. Specifically, it returned a tree whose type corresponded to QImode for !p->m, but the desired result type was int, which corresponded to SImode. emit_move_insn() later tried to copy a reg:QI to reg:SI, causing an ICE. */ struct s { int m : 1; }; int foo (struct s *p) { return !p->m; }