aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gnat.dg/expect1.adb
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gnat.dg/expect1.adb')
-rw-r--r--gcc/testsuite/gnat.dg/expect1.adb15
1 files changed, 15 insertions, 0 deletions
diff --git a/gcc/testsuite/gnat.dg/expect1.adb b/gcc/testsuite/gnat.dg/expect1.adb
new file mode 100644
index 0000000..058fe42
--- /dev/null
+++ b/gcc/testsuite/gnat.dg/expect1.adb
@@ -0,0 +1,15 @@
+-- { dg-do run }
+
+with GNAT.Expect; use GNAT.Expect;
+with Ada.Text_IO; use Ada.Text_IO;
+procedure expect1 is
+ Process : Process_Descriptor;
+begin
+ begin
+ Close (Process);
+ raise Program_Error;
+ exception
+ when Invalid_Process =>
+ null; -- expected
+ end;
+end expect1;