summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gnat.dg/check_elaboration_code.adb
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gnat.dg/check_elaboration_code.adb')
-rw-r--r--gcc/testsuite/gnat.dg/check_elaboration_code.adb9
1 files changed, 9 insertions, 0 deletions
diff --git a/gcc/testsuite/gnat.dg/check_elaboration_code.adb b/gcc/testsuite/gnat.dg/check_elaboration_code.adb
new file mode 100644
index 000000000..63dde56f2
--- /dev/null
+++ b/gcc/testsuite/gnat.dg/check_elaboration_code.adb
@@ -0,0 +1,9 @@
+-- { dg-do run }
+with Bug_Elaboration_Code; use Bug_Elaboration_Code;
+
+procedure Check_Elaboration_Code is
+begin
+ if I /= J then
+ raise Program_Error;
+ end if;
+end Check_Elaboration_Code;