annotate gcc/testsuite/g++.dg/torture/pr77822.C @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 // PR target/77822
kono
parents:
diff changeset
2 // { dg-do compile }
kono
parents:
diff changeset
3
kono
parents:
diff changeset
4 using UINT8 = char;
kono
parents:
diff changeset
5 using UINT32 = int;
kono
parents:
diff changeset
6 using UINT64 = long;
kono
parents:
diff changeset
7 class A
kono
parents:
diff changeset
8 {
kono
parents:
diff changeset
9 void m_fn1 ();
kono
parents:
diff changeset
10 struct B
kono
parents:
diff changeset
11 {
kono
parents:
diff changeset
12 UINT32 m_multiplier;
kono
parents:
diff changeset
13 };
kono
parents:
diff changeset
14 UINT8 m_datawidth;
kono
parents:
diff changeset
15 UINT8 m_subunits;
kono
parents:
diff changeset
16 B m_subunit_infos[];
kono
parents:
diff changeset
17 };
kono
parents:
diff changeset
18 int a;
kono
parents:
diff changeset
19 UINT64 b;
kono
parents:
diff changeset
20 void
kono
parents:
diff changeset
21 A::m_fn1 ()
kono
parents:
diff changeset
22 {
kono
parents:
diff changeset
23 int c = 32, d = m_datawidth / c;
kono
parents:
diff changeset
24 for (int e = 0; e < d; e++)
kono
parents:
diff changeset
25 {
kono
parents:
diff changeset
26 UINT32 f = e * 32;
kono
parents:
diff changeset
27 if (b >> f & 1)
kono
parents:
diff changeset
28 m_subunit_infos[m_subunits].m_multiplier = a;
kono
parents:
diff changeset
29 }
kono
parents:
diff changeset
30 }