diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-09-03 20:03:14 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-09-03 20:03:14 +0000 |
commit | 781a3b3ee6e90277eba14fb0cc4f0de88ffec0b6 (patch) | |
tree | 9155225b12344ebc28789e19ac1f3113108679cc /test | |
parent | 863dd146bd186581ef71e38a4fac7df3c4c4e5ef (diff) | |
download | compiler-rt-781a3b3ee6e90277eba14fb0cc4f0de88ffec0b6.tar.gz compiler-rt-781a3b3ee6e90277eba14fb0cc4f0de88ffec0b6.tar.bz2 compiler-rt-781a3b3ee6e90277eba14fb0cc4f0de88ffec0b6.tar.xz |
Convert tabs to spaces.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@80937 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rwxr-xr-x | test/Unit/test | 64 |
1 files changed, 32 insertions, 32 deletions
diff --git a/test/Unit/test b/test/Unit/test index f5b68b23..595a03cd 100755 --- a/test/Unit/test +++ b/test/Unit/test @@ -1,36 +1,36 @@ for ARCH in i386 x86_64 ppc; do - for FILE in $(ls *.c); do - # Use -nodefaultlibs to avoid using libgcc.a - # Use -lSystem to link with libSystem.dylb. - # Note -lSystem is *after* libcompiler_rt.Optimized.a so that linker will - # prefer our implementation over the ones in libSystem.dylib - EXTRA= - if test $FILE = gcc_personality_test.c - then - # the gcc_personality_test.c requires a helper C++ program - EXTRA="-fexceptions gcc_personality_test_helper.cxx -lstdc++ /usr/lib/libgcc_s.1.dylib" - # the libgcc_s.1.dylib use at the end is a hack until libSystem contains _Unwind_Resume - fi - if test $FILE = trampoline_setup_test.c - then - # this test requires an extra compiler option - EXTRA="-fnested-functions" - fi - if gcc -nodefaultlibs -arch $ARCH -Os $FILE ../../Release/libcompiler_rt.Optimized.a -lSystem $EXTRA - then - echo "Testing $FILE for $ARCH" - if ./a.out - then - rm ./a.out - else - echo "fail" - exit 1 - fi - else - echo "$FILE failed to compile" - exit 1 - fi - done + for FILE in $(ls *.c); do + # Use -nodefaultlibs to avoid using libgcc.a + # Use -lSystem to link with libSystem.dylb. + # Note -lSystem is *after* libcompiler_rt.Optimized.a so that linker will + # prefer our implementation over the ones in libSystem.dylib + EXTRA= + if test $FILE = gcc_personality_test.c + then + # the gcc_personality_test.c requires a helper C++ program + EXTRA="-fexceptions gcc_personality_test_helper.cxx -lstdc++ /usr/lib/libgcc_s.1.dylib" + # the libgcc_s.1.dylib use at the end is a hack until libSystem contains _Unwind_Resume + fi + if test $FILE = trampoline_setup_test.c + then + # this test requires an extra compiler option + EXTRA="-fnested-functions" + fi + if gcc -nodefaultlibs -arch $ARCH -Os $FILE ../../Release/libcompiler_rt.Optimized.a -lSystem $EXTRA + then + echo "Testing $FILE for $ARCH" + if ./a.out + then + rm ./a.out + else + echo "fail" + exit 1 + fi + else + echo "$FILE failed to compile" + exit 1 + fi + done done echo "pass" exit |