require diagnostic even without -pedantic

From-SVN: r24389
This commit is contained in:
Alexandre Oliva 1998-12-21 10:39:08 +00:00
parent 21f2174d55
commit ebc9d4b79c
1 changed files with 4 additions and 2 deletions

View File

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