This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH] Fix compilation of dyn_arrayidx ada testcase
- From: Doug Evans <xdje42 at gmail dot com>
- To: brobecker at adacore dot com, gdb-patches at sourceware dot org
- Date: Sat, 24 Jan 2015 12:13:19 -0800
- Subject: [PATCH] Fix compilation of dyn_arrayidx ada testcase
- Authentication-results: sourceware.org; auth=none
Hi.
I was looking into this testcase as boilerplate for another test
I want to write for a cleanup patch, and noticed it doesn't compile.
gcc -c -m64 -g -lm -I- -gnatA /hack/build/vptr-cleanup-1/vptr-cleanup-1/gdb/testsuite/gdb.ada/dyn_arrayidx/foo.adb
foo.adb:23:13: iterator is an Ada 2012 feature
2015-01-24 Doug Evans <xdje42@gmail.com>
* gdb.ada/dyn_arrayidx.exp: Add additional_flags=-gnat12.
diff --git a/gdb/testsuite/gdb.ada/dyn_arrayidx.exp b/gdb/testsuite/gdb.ada/dyn_arrayidx.exp
index 25351db..06702b8 100644
--- a/gdb/testsuite/gdb.ada/dyn_arrayidx.exp
+++ b/gdb/testsuite/gdb.ada/dyn_arrayidx.exp
@@ -19,7 +19,7 @@ if { [skip_ada_tests] } { return -1 }
standard_ada_testfile foo
-if {[gdb_compile_ada "${srcfile}" "${binfile}" executable {debug}] != ""} {
+if {[gdb_compile_ada "${srcfile}" "${binfile}" executable {debug additional_flags=-gnat12}] != ""} {
return -1
}