Commit 55015c10 by Martin Liska Committed by Martin Liska

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
parent a279ae93
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
......
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment