Debian Codegraph @

gcc/testsuite/g++.dg/pr94666.C

raw
1 // { dg-do compile }
2 // { dg-options "-O3" }
3 // { dg-additional-options "-march=z13" { target s390*-*-* } }
4
5 int a, c;
6 struct A {
7 int e() {
8 int f;
9 for (int b = 0; b < 4; b++) {
10 a = __builtin_popcountl(d[b]);
11 f += a;
12 }
13 return f;
14 }
15 long d[4];
16 } * g;
17 void h() {
18 for (int b; b; b++)
19 c += g[b].e();
20 }