gnat-llvm does not support the -Og flag. This arranges to check for
this flag before using it.
require allow_ada_tests
+# LLVM does not have -Og, and anyway this is a regression test for a
+# GCC bug.
+require ada_og
+
standard_ada_testfile foo
# The compiler used to emit an invalid DWARF expression for the record
return [ada_simple_compile minimal_encodings \
additional_flags=-fgnat-encodings=minimal]
}
+
+# Return 1 if GNAT supports -Og.
+gdb_caching_proc ada_og {} {
+ return [ada_simple_compile gnat_og additional_flags=-Og]
+}