diff options
author | Ian Lance Taylor <ian@wasabisystems.com> | 2004-04-07 23:12:48 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2004-04-07 23:12:48 +0000 |
commit | 42b343d613c96ba2e8bd9bdcf6c8c56528a4154f (patch) | |
tree | 08ecfc80f9dc38fbb4ece4231d4dbc2c2cb2ef24 | |
parent | 6ed6a1b910b462fbc4b695272d54f3ee39ba991d (diff) | |
download | gcc-42b343d613c96ba2e8bd9bdcf6c8c56528a4154f.zip gcc-42b343d613c96ba2e8bd9bdcf6c8c56528a4154f.tar.gz gcc-42b343d613c96ba2e8bd9bdcf6c8c56528a4154f.tar.bz2 |
* gcc.dg/pch/pch.exp: Add largefile test.
From-SVN: r80492
-rw-r--r-- | gcc/testsuite/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/pch/pch.exp | 15 |
2 files changed, 19 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index aebaa93..11b90ec 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2004-04-07 Ian Lance Taylor <ian@wasabisystems.com> + + * gcc.dg/pch/pch.exp: Add largefile test. + 2004-04-06 Geoffrey Keating <geoffk@apple.com> * 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 8ed26ba..79fd9e7 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. |