Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gcc.dg/cpp/empty-include.c @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | |
children |
rev | line source |
---|---|
111 | 1 /* |
2 * Copyright 2004 Free Software Foundation, Inc. | |
3 * Contributed and written by Nathanael Nerode. | |
4 * | |
5 * GCC 3.4 would attempt to open stdin as the included file | |
6 * (PR 17610), causing a sort of hang. | |
7 * | |
8 * We should get an error. | |
9 */ | |
10 | |
11 /* { dg-do preprocess } */ | |
12 /* { dg-options "-fshow-column" } */ | |
13 #include "" /* { dg-error "10:empty" "error on empty filename in include" } */ | |
14 int x; /* Otherwise we have an empty file and get more errors. */ |