gcc/testsuite/gnat.dg/case_optimization3.adb
raw| 1 | -- { dg-do compile } |
| 2 | |
| 3 | package body Case_Optimization3 is |
| 4 | |
| 5 | procedure Proc (Val : T_RANGE) is |
| 6 | begin |
| 7 | case Val is |
| 8 | when 0 => |
| 9 | raise Program_Error; |
| 10 | when 1 => |
| 11 | null; |
| 12 | when 2 => |
| 13 | null; |
| 14 | when 3 => |
| 15 | null; |
| 16 | when 4 => |
| 17 | null; |
| 18 | when others => |
| 19 | null; |
| 20 | end case; |
| 21 | end; |
| 22 | |
| 23 | end Case_Optimization3; |
| 24 | |
| 25 | -- { dg-final { scan-assembler-not "__ucmpdi2" } } |