Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/g++.dg/opt/pr60597.C @ 158:494b0b89df80 default tip
...
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 25 May 2020 18:13:55 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
// PR middle-end/60597 // { dg-do compile } // { dg-options "-O2 -g" } struct A { int foo () const; int bar () const; int a; }; struct B { int foo (); int bar (); }; int *c, d; int A::foo () const { int b = a >> 16; return b; } int A::bar () const { int b = a; return b; } void baz (A &x, B h, int i, int j) { for (; i < h.bar (); ++i) for (; h.foo (); ++j) { int g = x.foo (); int f = x.bar (); int e = c[0] & 1; d = (e << 1) | (g << 16) | (f & 1); c[j] = 0; } }