Testsuite: Mark check_effective_target_exceptions_enabled test as C++ test input.
authorTamar Christina <tamar.christina@arm.com>
Thu, 11 Jun 2020 17:19:44 +0000 (18:19 +0100)
committerTamar Christina <tamar.christina@arm.com>
Thu, 11 Jun 2020 17:19:44 +0000 (18:19 +0100)
The test in check_effective_target_exceptions_enabled uses a C++ keyword `throw`
and the test fails with a syntax error on any non-g++ test.  I now tell the
testsuite driver that this is a C++ input file so it runs it as such in all the
drivers.

gcc/testsuite/ChangeLog:

* lib/target-supports.exp (check_effective_target_exceptions_enabled):
Mark as C++ test input.

gcc/testsuite/lib/target-supports.exp

index a595042..4dbeccd 100644 (file)
@@ -9537,6 +9537,7 @@ proc check_effective_target_exceptions_enabled {} {
     return [check_cached_effective_target exceptions_enabled {
        if { [check_effective_target_exceptions] } {
            return [check_no_compiler_messages exceptions_enabled assembly {
+               // C++
                void foo (void)
                {
                    throw 1;