repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
* ubsan.c (ubsan_expand_null_ifn): Use _v1 suffixed type mismatch
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.target
/
s390
/
pr77822-1.C
blob
bd5a9b4abd8833d3da8f110e7b99382c172763ae
1
/* Regression test for PR/77822. */
2
3
/* { dg-do compile } */
4
/* { dg-options "-O3 -march=zEC12" } */
5
6
class A {
7
void m_fn1();
8
char m_datawidth;
9
char m_subunits;
10
int m_subunit_infos[];
11
};
12
int a;
13
long b;
14
void A::m_fn1() {
15
int c = 32, d = m_datawidth / c;
16
for (int e = 0; e < d; e++) {
17
int f = e * 32;
18
if (b >> f & 1)
19
m_subunit_infos[m_subunits] = a;
20
}
21
}