* gcc.dg/cpp-li1.c: New test.

From-SVN: r32144
This commit is contained in:
Alexandre Oliva 2000-02-25 04:44:41 +00:00 committed by Alexandre Oliva
parent 12b595c7c4
commit cff244b2b2
2 changed files with 21 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
* gcc.dg/cpp-li1.c: New test.
2000-02-24 Nathan Sidwell <nathan@codesourcery.com>
* g++.old-deja/g++.other/sizeof5.C: New test.

View File

@ -0,0 +1,17 @@
/* Copyright (C) 2000 Free Software Foundation.
by Alexandre Oliva <oliva@lsd.ic.unicamp.br> */
/* { dg-do preprocess } */
/* The line number below must be just a few lines greater than the
actual line number. */
#line 10 "baz"
/*
{ dg-final { if \{ [grep cpp-li1.i baz] != "" \} \{ } }
{ dg-final { pass "cpp-li1.i: #line directive optimization" } }
{ dg-final { \} else \{ } }
{ dg-final { fail "cpp-li1.i: #line directive optimization" } }
{ dg-final { \} } }
*/