2009-03-18 07:39:24 +08:00
|
|
|
// Basic binding.
|
|
|
|
// RUN: clang-driver -ccc-print-bindings %s &> %t &&
|
2009-03-19 05:17:39 +08:00
|
|
|
// 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 &&
|
2009-03-18 07:39:24 +08:00
|
|
|
|
|
|
|
// RUN: clang-driver -ccc-print-bindings -ccc-no-clang %s &> %t &&
|
2009-03-19 05:17:39 +08:00
|
|
|
// 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 &&
|
2009-03-18 07:39:24 +08:00
|
|
|
|
|
|
|
// RUN: clang-driver -ccc-print-bindings -ccc-no-clang -no-integrated-cpp %s &> %t &&
|
2009-03-19 05:17:39 +08:00
|
|
|
// 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 &&
|
2009-03-18 07:39:24 +08:00
|
|
|
|
|
|
|
// RUN: clang-driver -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 &&
|
2009-03-19 05:17:39 +08:00
|
|
|
// RUN: grep 'bind - "gcc::Assemble", inputs: \[(pipe)\], output: ".*\.o"' %t &&
|
|
|
|
// RUN: grep 'bind - "gcc::Link", inputs: \[".*\.o"\], output: "a.out"' %t &&
|
2009-03-18 07:39:24 +08:00
|
|
|
|
2009-03-18 10:00:31 +08:00
|
|
|
// RUN: clang-driver -ccc-print-bindings -ccc-no-clang -x c-header %s &> %t &&
|
2009-03-19 05:17:39 +08:00
|
|
|
// RUN: grep 'bind - "gcc::Precompile", inputs: \[".*bindings.c"\], output: ".*bindings.c.gch' %t &&
|
2009-03-18 10:00:31 +08:00
|
|
|
|
2009-03-18 07:39:24 +08:00
|
|
|
// Clang control options
|
|
|
|
|
|
|
|
// RUN: clang-driver -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: 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: 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 &&
|
2009-03-19 05:17:39 +08:00
|
|
|
// RUN: grep 'bind - "gcc::Preprocess", inputs: \[".*bindings.c"\], output: ".*\.ii"' %t &&
|
|
|
|
// RUN: grep 'bind - "clang", inputs: \[".*\.ii"\], output: (nothing)' %t &&
|
2009-03-18 08:12:31 +08:00
|
|
|
// RUN: clang-driver -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: grep 'bind - "clang", inputs: \[".*bindings.c"\], output: "bindings.s"' %t &&
|
2009-03-18 07:39:24 +08:00
|
|
|
|
|
|
|
// RUN: true
|