From 42b343d613c96ba2e8bd9bdcf6c8c56528a4154f Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Wed, 7 Apr 2004 23:12:48 +0000 Subject: [PATCH] * gcc.dg/pch/pch.exp: Add largefile test. From-SVN: r80492 --- gcc/testsuite/ChangeLog | 4 ++++ gcc/testsuite/gcc.dg/pch/pch.exp | 15 +++++++++++++++ 2 files changed, 19 insertions(+) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index aebaa939313..11b90ec46eb 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2004-04-07 Ian Lance Taylor + + * gcc.dg/pch/pch.exp: Add largefile test. + 2004-04-06 Geoffrey Keating * g++.dg/pch/externc-1.Hs: New. diff --git a/gcc/testsuite/gcc.dg/pch/pch.exp b/gcc/testsuite/gcc.dg/pch/pch.exp index 8ed26ba7ef7..79fd9e77139 100644 --- a/gcc/testsuite/gcc.dg/pch/pch.exp +++ b/gcc/testsuite/gcc.dg/pch/pch.exp @@ -37,6 +37,21 @@ foreach test [lsort [glob -nocomplain $srcdir/$subdir/*.c]] { dg-pch $subdir $test [concat [list {-O0 -g}] $torture_without_loops] ".h" } +set test "largefile.c" +set testh "largefile.hs" +set f [open $test w] +set v 0 +for { set v 0 } { $v < 10000 } { incr v } { + puts $f "#define MACRO_${v} \"1234567890\" \"$v\"" +} +puts $f "#include \"largefile.h\"" +close $f +set f [open $testh w] +close $f +dg-pch $subdir $test [concat [list {-O0 -g}] $torture_without_loops] ".h" +file delete $test +file delete $testh + set dg-do-what-default "$old_dg_do_what_default" # All done. -- 2.30.2