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:
parent
a279ae9354
commit
55015c109a
2 changed files with 6 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue