Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.c-torture/compile/pr84195.c @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | |
children |
line wrap: on
line source
/* { dg-options "-Wdeprecated-declarations" } */ /* Check that MSG is printed without the escape characters being interpreted. Especially the newlines. Note - gcc's behaviour is inconsistent in this regard as #error and #warning will also display control characters as escape sequences, whereas #pragma GCC error and #pragma GCC warning will perform the control operations of the control characters. */ #define MSG "foo\n\t\rbar" int f (int i __attribute__ ((deprecated (MSG)))) { return 0 ? i : 0; /* { dg-warning "'i' is deprecated: foo.n.t.rbar" } */ }