diff options
Diffstat (limited to 'gcc/testsuite/gnat.dg/opt13.adb')
-rw-r--r-- | gcc/testsuite/gnat.dg/opt13.adb | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/gcc/testsuite/gnat.dg/opt13.adb b/gcc/testsuite/gnat.dg/opt13.adb new file mode 100644 index 000000000..9e47957e9 --- /dev/null +++ b/gcc/testsuite/gnat.dg/opt13.adb @@ -0,0 +1,13 @@ +-- { dg-do run } +-- { dg-options "-O" } + +with Opt13_Pkg; use Opt13_Pkg; + +procedure Opt13 is + T : My_Type; +begin + Allocate (T); + if N /= 1 then + raise Program_Error; + end if; +end; |