diff options
Diffstat (limited to 'gcc/testsuite/gnat.dg/case_null.adb')
-rw-r--r-- | gcc/testsuite/gnat.dg/case_null.adb | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/gcc/testsuite/gnat.dg/case_null.adb b/gcc/testsuite/gnat.dg/case_null.adb new file mode 100644 index 0000000..eba89dc --- /dev/null +++ b/gcc/testsuite/gnat.dg/case_null.adb @@ -0,0 +1,16 @@ +-- { dg-do compile } +-- { dg-options "-gnatws" } + +package body Case_Null is + procedure P1 (X : T) is + begin + case X is + when S1 => + null; + when e => + null; + when others => + null; + end case; + end P1; +end Case_Null; |