summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/cpp/counter-3.c
blob: 3b1824f25d58b0a19678326b5eb5a335556bf0f7 (plain)
1
2
3
4
5
6
7
8
9
10
/* Copyright 2007 Free Software Foundation, Inc.
   Contributed by Ollie Wild <aaw@google.com>.  */

/* { dg-do preprocess } */
/* { dg-options "-fdirectives-only -fpreprocessed" } */

/* Tests __COUNTER__ macro expansion is enabled outside directives with
   -fdirectives-only. */

int zero = __COUNTER__;