diff options
Diffstat (limited to 'gcc/testsuite/gcc.dg/cpp/line5.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/cpp/line5.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/cpp/line5.c b/gcc/testsuite/gcc.dg/cpp/line5.c new file mode 100644 index 000000000..4cad6a171 --- /dev/null +++ b/gcc/testsuite/gcc.dg/cpp/line5.c @@ -0,0 +1,15 @@ +/* Copyright (C) 2001 Free Software Foundation, Inc. */ + +/* { dg-do preprocess } */ +/* { dg-options "-fpreprocessed" } */ + +/* Source: Neil Booth, 16 Sep 2001. + + This file, with an indented line marker, is not possible without + user editing of preprocessed output, or the user using + -fpreprocessed on raw source. Nevertheless, we should not + segfault. This is a test that we don't back up two tokens in + cpplib.c - one to back up over the number, and one when we + recognize that it's not a valid directive in preprocessed input. */ + + # 1 "foo.c" |