* gcc.dg/pch/pch.exp: Add largefile test.

From-SVN: r80492
This commit is contained in:
Ian Lance Taylor 2004-04-07 23:12:48 +00:00 committed by Ian Lance Taylor
parent 6ed6a1b910
commit 42b343d613
2 changed files with 19 additions and 0 deletions

View File

@ -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.

View File

@ -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.