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
This commit is contained in:
Martin Liska 2017-10-16 21:45:02 +02:00 committed by Martin Liska
parent a279ae9354
commit 55015c109a
2 changed files with 6 additions and 2 deletions

View file

@ -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

View file

@ -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;