require diagnostic even without -pedantic
From-SVN: r24389
This commit is contained in:
parent
21f2174d55
commit
ebc9d4b79c
1 changed files with 4 additions and 2 deletions
|
@ -2,5 +2,7 @@
|
|||
|
||||
// Based on bug report by Thomas Kunert <kunert@physik.tu-dresden.de>
|
||||
|
||||
const int foo();
|
||||
int (*bar)() = foo; // ERROR - discarding const - XFAIL *-*-*
|
||||
// Special g++ Options:
|
||||
|
||||
int foo();
|
||||
const int (*bar)() = foo; // ERROR - adding const - XFAIL *-*-*
|
||||
|
|
Loading…
Add table
Reference in a new issue