* c-decl.c (c_decode_option): Give deprecation warning for -traditional. * doc/invoke.texi (-traditional): Note that this option is deprecated. testsuite: * gcc.dg/cpp/assert_trad1.c, gcc.dg/cpp/tr-paste.c, gcc.dg/cpp/tr-str.c: Use -traditional-cpp instead of -traditional. * gcc.dg/ext-glob.c: Expect -traditional deprecation warning. From-SVN: r47147
18 lines
448 B
C
18 lines
448 B
C
/* Test for proper comment elimination semantics from cpplib's -traditional.
|
|
This should compile and link with compiled with `gcc -traditional-cpp'.
|
|
Test case by Jason R. Thorpe <thorpej@zembu.com>. */
|
|
|
|
/* { dg-do compile } */
|
|
/* { dg-options "-traditional-cpp" } */
|
|
|
|
#define A(name) X/**/name
|
|
|
|
#define B(name) \
|
|
void A(Y/**/name)() { A(name)(); }
|
|
|
|
void Xhello() { printf("hello world\n"); }
|
|
|
|
B(hello)
|
|
|
|
int main() { XYhello(); return (0); }
|