diff options
author | no-author <no-author@gcc.gnu.org> | 2004-04-22 18:51:16 +0000 |
---|---|---|
committer | no-author <no-author@gcc.gnu.org> | 2004-04-22 18:51:16 +0000 |
commit | 255d1216471be681eb2ee9ece11ec735a3f27876 (patch) | |
tree | 8c306f5f27b8edf1ef6e9ea83e476b9872e5642a /gcc/testsuite/gcc.apple/special/special.exp | |
parent | 28ba643603d86afcea151fc5026a7dc2eaa47da1 (diff) |
This commit was manufactured by cvs2svn to create tagapple/gcc-1742
'apple-gcc-1742'.
git-svn-id: https://gcc.gnu.org/svn/gcc/tags/apple-gcc-1742@81049 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.apple/special/special.exp')
-rw-r--r-- | gcc/testsuite/gcc.apple/special/special.exp | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.apple/special/special.exp b/gcc/testsuite/gcc.apple/special/special.exp new file mode 100644 index 00000000000..5344a4817b7 --- /dev/null +++ b/gcc/testsuite/gcc.apple/special/special.exp @@ -0,0 +1,42 @@ +# APPLE LOCAL file testsuite +# Copyright (C) 2002 Free Software Foundation, Inc. + +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +# Load support procs. +load_lib gcc-dg.exp + +# Initialize `dg'. +dg-init + +# Test the zerofill support by seeing if a file with a large array +# compiled -fno-common has a small size on disk. + +gcc_target_compile "$srcdir/$subdir/zerofill.c" "zerofill.o" object \ + "additional_flags=-fno-common" + +set size [ exec wc -c < zerofill.o ] + +if { $size < 100000 } { + pass "zerofill" +} else { + fail "zerofill" +} + +file delete zerofill.o + +# All done. +dg-finish |