From fd54803250b4b5b1c8e41d1a6c3b77e96d7193c4 Mon Sep 17 00:00:00 2001 From: marxin Date: Mon, 16 Oct 2017 19:45:02 +0000 Subject: [PATCH] Fix attrib-5.c test-case. 2017-10-16 Martin Liska * c-c++-common/ubsan/attrib-5.c (float_cast2): Fix warning scan so that it will work for both C and C++ FEs. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@253795 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/c-c++-common/ubsan/attrib-5.c | 3 +-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index fb2021a8efd..33220d57479 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2017-10-16 Martin Liska + + * 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 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 fee1df1c433..209b5dd7d2b 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; -- 2.11.4.GIT