public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc(refs/users/guojiufu/heads/guojiufu-branch)] Testsuite: Mark check_effective_target_exceptions_enabled test as C++ test input.
@ 2020-06-13 2:57 Jiu Fu Guo
0 siblings, 0 replies; only message in thread
From: Jiu Fu Guo @ 2020-06-13 2:57 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:8f896fe5cd5fd7162d2996d0c28a6e4647597c2b
commit 8f896fe5cd5fd7162d2996d0c28a6e4647597c2b
Author: Tamar Christina <tamar.christina@arm.com>
Date: Thu Jun 11 18:19:44 2020 +0100
Testsuite: Mark check_effective_target_exceptions_enabled test as C++ test input.
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.
Diff:
---
gcc/testsuite/lib/target-supports.exp | 1 +
1 file changed, 1 insertion(+)
diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp
index a595042b36e..4dbeccd8346 100644
--- a/gcc/testsuite/lib/target-supports.exp
+++ b/gcc/testsuite/lib/target-supports.exp
@@ -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;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-06-13 2:57 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-13 2:57 [gcc(refs/users/guojiufu/heads/guojiufu-branch)] Testsuite: Mark check_effective_target_exceptions_enabled test as C++ test input Jiu Fu Guo
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).