summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/cpp/paste3.c
blob: 0c9c52de3d2eb1b9feda7c9e81db4245dd49c968 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* Copyright (C) 2000 Free Software Foundation, Inc.  */

/* { dg-do compile } */

#define plus +

void foo()
{
  int a, b = 1;

  /* The correct "a = 1 + ++b" will compile.
     The incorrect "a = 1 +++b" won't.  */
  a = 1 plus++b;
}