summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/cpp/20000625-1.c
blob: 01ce98bf628e921dbe3651eeee4f6354197ac804 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* Regression test for paste corner cases.  Distilled from
   syscall stub logic in glibc.  */

/* { dg-do compile } */

#define ENTRY(name)	name##:
#define socket bind

int
main(void)
{
  goto socket;

  ENTRY(socket) /* { dg-error "valid preprocessing token" "" } */
    return 0;
}