diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-03-20 16:06:39 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-03-20 16:06:39 +0000 |
commit | be2208472c5befd49931b54650a6b8f8ca0c9be2 (patch) | |
tree | 3f4bc97b63abdca47b12e246c9ecfc453da21efe /clang/test/Driver | |
parent | 1e1c0b9fd329144f34b056b8c50a90db949cd1bc (diff) | |
download | bcm5719-llvm-be2208472c5befd49931b54650a6b8f8ca0c9be2.tar.gz bcm5719-llvm-be2208472c5befd49931b54650a6b8f8ca0c9be2.zip |
Driver: Add and use darwin::Assemble tool.
- Based on patch from Pieter de Bie; thanks!
llvm-svn: 67379
Diffstat (limited to 'clang/test/Driver')
-rw-r--r-- | clang/test/Driver/bindings.c | 26 |
1 files changed, 16 insertions, 10 deletions
diff --git a/clang/test/Driver/bindings.c b/clang/test/Driver/bindings.c index 01382a198dd..2b4633ffb5f 100644 --- a/clang/test/Driver/bindings.c +++ b/clang/test/Driver/bindings.c @@ -1,43 +1,49 @@ // Basic binding. -// RUN: clang-driver -ccc-print-bindings %s &> %t && +// RUN: clang-driver -ccc-host-triple i386-unknown-unknown -ccc-print-bindings %s &> %t && // RUN: grep 'bind - "clang", inputs: \[".*bindings.c"\], output: ".*\.s"' %t && // RUN: grep 'bind - "gcc::Assemble", inputs: \[".*\.s"\], output: ".*\.o"' %t && // RUN: grep 'bind - "gcc::Link", inputs: \[".*\.o"\], output: "a.out"' %t && -// RUN: clang-driver -ccc-print-bindings -ccc-no-clang %s &> %t && +// RUN: clang-driver -ccc-host-triple i386-unknown-unknown -ccc-print-bindings -ccc-no-clang %s &> %t && // RUN: grep 'bind - "gcc::Compile", inputs: \[".*bindings.c"\], output: ".*\.s"' %t && // RUN: grep 'bind - "gcc::Assemble", inputs: \[".*\.s"\], output: ".*\.o"' %t && // RUN: grep 'bind - "gcc::Link", inputs: \[".*\.o"\], output: "a.out"' %t && -// RUN: clang-driver -ccc-print-bindings -ccc-no-clang -no-integrated-cpp %s &> %t && +// RUN: clang-driver -ccc-host-triple i386-unknown-unknown -ccc-print-bindings -ccc-no-clang -no-integrated-cpp %s &> %t && // RUN: grep 'bind - "gcc::Preprocess", inputs: \[".*bindings.c"\], output: ".*\.i"' %t && // RUN: grep 'bind - "gcc::Compile", inputs: \[".*\.i"\], output: ".*\.s"' %t && // RUN: grep 'bind - "gcc::Assemble", inputs: \[".*\.s"\], output: ".*\.o"' %t && // RUN: grep 'bind - "gcc::Link", inputs: \[".*\.o"\], output: "a.out"' %t && -// RUN: clang-driver -ccc-print-bindings -ccc-no-clang -no-integrated-cpp -pipe %s &> %t && +// RUN: clang-driver -ccc-host-triple i386-unknown-unknown -ccc-print-bindings -ccc-no-clang -no-integrated-cpp -pipe %s &> %t && // RUN: grep 'bind - "gcc::Preprocess", inputs: \[".*bindings.c"\], output: (pipe)' %t && // RUN: grep 'bind - "gcc::Compile", inputs: \[(pipe)\], output: (pipe)' %t && // RUN: grep 'bind - "gcc::Assemble", inputs: \[(pipe)\], output: ".*\.o"' %t && // RUN: grep 'bind - "gcc::Link", inputs: \[".*\.o"\], output: "a.out"' %t && -// RUN: clang-driver -ccc-print-bindings -ccc-no-clang -x c-header %s &> %t && +// RUN: clang-driver -ccc-host-triple i386-unknown-unknown -ccc-print-bindings -ccc-no-clang -x c-header %s &> %t && // RUN: grep 'bind - "gcc::Precompile", inputs: \[".*bindings.c"\], output: ".*bindings.c.gch' %t && // Clang control options -// RUN: clang-driver -ccc-print-bindings -fsyntax-only %s &> %t && +// RUN: clang-driver -ccc-host-triple i386-unknown-unknown -ccc-print-bindings -fsyntax-only %s &> %t && // RUN: grep 'bind - "clang", inputs: \[".*bindings.c"\], output: (nothing)' %t && -// RUN: clang-driver -ccc-print-bindings -ccc-no-clang -fsyntax-only %s &> %t && +// RUN: clang-driver -ccc-host-triple i386-unknown-unknown -ccc-print-bindings -ccc-no-clang -fsyntax-only %s &> %t && // RUN: grep 'bind - "gcc::Compile", inputs: \[".*bindings.c"\], output: (nothing)' %t && -// RUN: clang-driver -ccc-print-bindings -ccc-no-clang-cxx -fsyntax-only -x c++ %s &> %t && +// RUN: clang-driver -ccc-host-triple i386-unknown-unknown -ccc-print-bindings -ccc-no-clang-cxx -fsyntax-only -x c++ %s &> %t && // RUN: grep 'bind - "gcc::Compile", inputs: \[".*bindings.c"\], output: (nothing)' %t && // RUN: clang-driver -ccc-print-bindings -ccc-no-clang-cpp -fsyntax-only -no-integrated-cpp -x c++ %s &> %t && // RUN: grep 'bind - "gcc::Preprocess", inputs: \[".*bindings.c"\], output: ".*\.ii"' %t && // RUN: grep 'bind - "clang", inputs: \[".*\.ii"\], output: (nothing)' %t && -// RUN: clang-driver -ccc-host-triple i386-apple-darwin9 -ccc-print-bindings -ccc-clang-archs i386 %s -S -arch ppc &> %t && +// RUN: clang-driver -ccc-host-triple i386-unknown-unknown -ccc-host-triple i386-apple-darwin9 -ccc-print-bindings -ccc-clang-archs i386 %s -S -arch ppc &> %t && // RUN: grep 'bind - "gcc::Compile", inputs: \[".*bindings.c"\], output: "bindings.s"' %t && -// RUN: clang-driver -ccc-host-triple i386-apple-darwin9 -ccc-print-bindings -ccc-clang-archs ppc %s -S -arch ppc &> %t && +// RUN: clang-driver -ccc-host-triple i386-unknown-unknown -ccc-host-triple i386-apple-darwin9 -ccc-print-bindings -ccc-clang-archs ppc %s -S -arch ppc &> %t && // RUN: grep 'bind - "clang", inputs: \[".*bindings.c"\], output: "bindings.s"' %t && +// Darwin bindings +// RUN: clang-driver -ccc-host-triple i386-apple-darwin9 -ccc-print-bindings %s &> %t && +// RUN: grep 'bind - "clang", inputs: \[".*bindings.c"\], output: ".*\.s"' %t && +// RUN: grep 'bind - "darwin::Assemble", inputs: \[".*\.s"\], output: ".*\.o"' %t && +// RUN: grep 'bind - "gcc::Link", inputs: \[".*\.o"\], output: "a.out"' %t && + // RUN: true |