annotate gcc/testsuite/gcc.dg/cpp/empty-include.c @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 /*
kono
parents:
diff changeset
2 * Copyright 2004 Free Software Foundation, Inc.
kono
parents:
diff changeset
3 * Contributed and written by Nathanael Nerode.
kono
parents:
diff changeset
4 *
kono
parents:
diff changeset
5 * GCC 3.4 would attempt to open stdin as the included file
kono
parents:
diff changeset
6 * (PR 17610), causing a sort of hang.
kono
parents:
diff changeset
7 *
kono
parents:
diff changeset
8 * We should get an error.
kono
parents:
diff changeset
9 */
kono
parents:
diff changeset
10
kono
parents:
diff changeset
11 /* { dg-do preprocess } */
kono
parents:
diff changeset
12 /* { dg-options "-fshow-column" } */
kono
parents:
diff changeset
13 #include "" /* { dg-error "10:empty" "error on empty filename in include" } */
kono
parents:
diff changeset
14 int x; /* Otherwise we have an empty file and get more errors. */