1 /* { dg-options "-Wdeprecated-declarations" } */
2
3 /* Check that MSG is printed without the escape characters being interpreted.
4 Especially the newlines.
5
6 Note - gcc's behaviour is inconsistent in this regard as #error and
7 #warning will also display control characters as escape sequences,
8 whereas #pragma GCC error and #pragma GCC warning will perform the
9 control operations of the control characters. */
10
11 #define MSG "foo\n\t\rbar"
12
f(int i)13 int f (int i __attribute__ ((deprecated (MSG))))
14 {
15 return 0 ? i : 0; /* { dg-warning "'i' is deprecated: foo.n.t.rbar" } */
16 }
17
18