aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorMartin Liska <mliska@suse.cz>2017-10-16 21:45:02 +0200
committerMartin Liska <marxin@gcc.gnu.org>2017-10-16 19:45:02 +0000
commit55015c109a09c6f5f1fa76bef388628ee895eedb (patch)
tree518c3d689b2bbe3a8d24fed9ecff2798518b85ba /gcc
parenta279ae9354f485846ec44cda4ebde19ba025359b (diff)
downloadgcc-55015c109a09c6f5f1fa76bef388628ee895eedb.zip
gcc-55015c109a09c6f5f1fa76bef388628ee895eedb.tar.gz
gcc-55015c109a09c6f5f1fa76bef388628ee895eedb.tar.bz2
Fix attrib-5.c test-case.
2017-10-16 Martin Liska <mliska@suse.cz> * c-c++-common/ubsan/attrib-5.c (float_cast2): Fix warning scan so that it will work for both C and C++ FEs. From-SVN: r253795
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/ChangeLog5
-rw-r--r--gcc/testsuite/c-c++-common/ubsan/attrib-5.c3
2 files changed, 6 insertions, 2 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index fb2021a..33220d5 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2017-10-16 Martin Liska <mliska@suse.cz>
+
+ * c-c++-common/ubsan/attrib-5.c (float_cast2): Fix warning scan
+ so that it will work for both C and C++ FEs.
+
2017-10-16 Fritz Reese <fritzoreese@gmail.com>
PR fortran/82511
diff --git a/gcc/testsuite/c-c++-common/ubsan/attrib-5.c b/gcc/testsuite/c-c++-common/ubsan/attrib-5.c
index fee1df1..209b5dd 100644
--- a/gcc/testsuite/c-c++-common/ubsan/attrib-5.c
+++ b/gcc/testsuite/c-c++-common/ubsan/attrib-5.c
@@ -3,8 +3,7 @@
__attribute__((no_sanitize("foobar")))
static void
-float_cast2 (void)
-{ /* { dg-warning "attribute directive ignored" } */
+float_cast2 (void) { /* { dg-warning "attribute directive ignored" } */
volatile double d = 300;
volatile signed char c;
c = d;