2000-07-31 Jakub Jelinek <jakub@redhat.com> * cpplex.c (_cpp_get_line): If index is 0, return line 0 col 0. (_cpp_get_token): Don't macro expand a just pasted token if it was pasted at no_expand_level. * testsuite/gcc.dg/cpp/paste7.c: New test. 2000-07-31 Zack Weinberg <zack@wolery.cumb.org> * cppmacro.c (find_param, count_params, save_expansion): Permit 'defined' as a macro parameter name. From-SVN: r35394
20 lines
292 B
C
20 lines
292 B
C
/* { dg-do run } */
|
|
|
|
#define D_2 1, 2
|
|
#define C_2(X, I0, I1) X##_a = I0, X##_b = I1
|
|
#define B_2(X, I) C_2(X, I)
|
|
#define A(N, X) B_##N (X, D_##N)
|
|
|
|
extern void abort(void);
|
|
extern void exit(int);
|
|
|
|
int x_a, x_b;
|
|
|
|
int main(void)
|
|
{
|
|
A(2, x);
|
|
if (x_a != 1 || x_b != 2)
|
|
abort();
|
|
exit(0);
|
|
}
|