Debian Codegraph @

gcc/testsuite/g++.dg/analyzer/pr102662.C

raw
1 /* { dg-additional-options "-fstrict-enums" } */
2
3 enum OpCode {
4 OP_MOVE,
5 OP_LOADK,
6 OP_LOADBOOL,
7 OP_LOADNIL,
8 OP_GETUPVAL,
9 OP_SETUPVAL
10 };
11
12 enum OpArg {
13 OpArgN,
14 OpArgU,
15 OpArgR,
16 OpArgK
17 };
18
19 void
20 symbexec_lastpc (enum OpCode symbexec_lastpc_op, enum OpArg luaP_opmodes)
21 {
22 switch (luaP_opmodes)
23 {
24 case OpArgN:
25 case OpArgK:
26 {
27 switch (symbexec_lastpc_op)
28 {
29 case OP_LOADNIL:
30 case OP_SETUPVAL:
31 break;
32 default:
33 break;
34 }
35 }
36 default:
37 break;
38 }
39 }