summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/cpp/cmdlne-P.c
blob: faadf9fbf79c83c79cb95793076cddebc597a91a (plain)
1
2
3
4
5
6
7
8
9
10
11
/* Copyright (C) 2000, 2003 Free Software Foundation, Inc.  */

/* { dg-do preprocess } */
/* { dg-options "-P" } */

/* Test that we don't stair-step output with -P.  Source: Neil Booth,
   18 Dec 2000.  */

int x = 1;

/* { dg-final { scan-file cmdlne-P.i "(^|\n)int x = 1;($|\n)" } } */