aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/cpp/pr61854-5.c
blob: a7628dc6ea43150bb49a1759226a62de4014442f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* PR c/61854 */
/* { dg-do run } */
/* { dg-options "-std=c89" } */

#define h(x) #x
#define s(x) h(x)
#define foo //

int
main (void)
{
  if (__builtin_memcmp (s(foo), "//", 3) != 0)
    __builtin_abort ();
  return 0;
}