OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.dg/] [cpp/] [empty-include.c] - Diff between revs 154 and 816

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 154 Rev 816
/*
/*
 * Copyright 2004 Free Software Foundation, Inc.
 * Copyright 2004 Free Software Foundation, Inc.
 * Contributed and written by Nathanael Nerode.
 * Contributed and written by Nathanael Nerode.
 *
 *
 * GCC 3.4 would attempt to open stdin as the included file
 * GCC 3.4 would attempt to open stdin as the included file
 * (PR 17610), causing a sort of hang.
 * (PR 17610), causing a sort of hang.
 *
 *
 * We should get an error.
 * We should get an error.
 */
 */
 
 
/* {dg-do preprocess} */
/* {dg-do preprocess} */
#include "" /* { dg-error "empty" "error on empty filename in include" } */
#include "" /* { dg-error "empty" "error on empty filename in include" } */
int x; /* Otherwise we have an empty file and get more errors. */
int x; /* Otherwise we have an empty file and get more errors. */
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.