gcc/testsuite/gcc.dg/tree-ssa/20031021-1.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-options "-O1 -fdump-tree-optimized" } */ |
| 3 | |
| 4 | struct A |
| 5 | { |
| 6 | int i : 8; |
| 7 | }; |
| 8 | |
| 9 | signed char c1, c2; |
| 10 | struct A a; |
| 11 | |
| 12 | int main() |
| 13 | { |
| 14 | a.i = c1; |
| 15 | c2 = a.i; |
| 16 | return a.i; |
| 17 | } |
| 18 | |
| 19 | /* We should only store to a.i, not load from it. */ |
| 20 | /* { dg-final { scan-tree-dump-not "= a.i" "optimized" } } */ |