comparison gcc/testsuite/gcc.dg/cpp/macro-exp-tracking-5.c @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents
children
comparison
equal deleted inserted replaced
68:561a7518be6b 111:04ced10e8804
1 /*
2 { dg-options "-fshow-column -ftrack-macro-expansion" }
3 { dg-do compile }
4 */
5
6 #define PASTED var ## iable /* { dg-error "'variable' undeclared" } */
7 #define call_foo(p1, p2) \
8 foo (p1, \
9 p2); /* { dg-message "in definition of macro 'call_foo'" } */
10
11 void foo(int, char);
12
13 void
14 bar()
15 {
16 call_foo(1,PASTED); /* { dg-message "in expansion of macro 'PASTED'" } */
17 }
18