annotate gcc/testsuite/g++.old-deja/g++.brendan/enum3.C @ 145:1830386684a0

gcc-9.2.0
author anatofuz
date Thu, 13 Feb 2020 11:34:05 +0900
parents 04ced10e8804
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 // { dg-do assemble }
kono
parents:
diff changeset
2 // GROUPS passed enums
kono
parents:
diff changeset
3 enum foo
kono
parents:
diff changeset
4 {
kono
parents:
diff changeset
5 x = 0
kono
parents:
diff changeset
6 };
kono
parents:
diff changeset
7
kono
parents:
diff changeset
8 enum bar
kono
parents:
diff changeset
9 {
kono
parents:
diff changeset
10 // this used to say `x' wasn't a constant, because build_enumerator
kono
parents:
diff changeset
11 // was getting the value of x wrapped around a NOP_EXPR. It now
kono
parents:
diff changeset
12 // strips them off before working on it, so we shouldn't get any
kono
parents:
diff changeset
13 // errors for this.
kono
parents:
diff changeset
14 y = (x + 0x0000)
kono
parents:
diff changeset
15 };