Daniel Dunbar | 9d07031 | 2009-03-17 23:39:24 +0000 | [diff] [blame] | 1 | // Basic binding. |
Daniel Dunbar | 80737ad | 2009-12-15 22:01:24 +0000 | [diff] [blame] | 2 | // RUN: %clang -ccc-host-triple i386-unknown-unknown -ccc-print-bindings %s 2> %t |
Daniel Dunbar | 4fcfde4 | 2009-11-08 01:45:36 +0000 | [diff] [blame] | 3 | // RUN: grep '"clang", inputs: \[".*bindings.c"\], output: ".*\.s"' %t |
| 4 | // RUN: grep '"gcc::Assemble", inputs: \[".*\.s"\], output: ".*\.o"' %t |
| 5 | // RUN: grep '"gcc::Link", inputs: \[".*\.o"\], output: "a.out"' %t |
Daniel Dunbar | 9d07031 | 2009-03-17 23:39:24 +0000 | [diff] [blame] | 6 | |
Daniel Dunbar | 80737ad | 2009-12-15 22:01:24 +0000 | [diff] [blame] | 7 | // RUN: %clang -ccc-host-triple i386-unknown-unknown -ccc-print-bindings -ccc-no-clang %s 2> %t |
Daniel Dunbar | 4fcfde4 | 2009-11-08 01:45:36 +0000 | [diff] [blame] | 8 | // RUN: grep '"gcc::Compile", inputs: \[".*bindings.c"\], output: ".*\.s"' %t |
| 9 | // RUN: grep '"gcc::Assemble", inputs: \[".*\.s"\], output: ".*\.o"' %t |
| 10 | // RUN: grep '"gcc::Link", inputs: \[".*\.o"\], output: "a.out"' %t |
Daniel Dunbar | 9d07031 | 2009-03-17 23:39:24 +0000 | [diff] [blame] | 11 | |
Daniel Dunbar | 80737ad | 2009-12-15 22:01:24 +0000 | [diff] [blame] | 12 | // RUN: %clang -ccc-host-triple i386-unknown-unknown -ccc-print-bindings -ccc-no-clang -no-integrated-cpp %s 2> %t |
Daniel Dunbar | 4fcfde4 | 2009-11-08 01:45:36 +0000 | [diff] [blame] | 13 | // RUN: grep '"gcc::Preprocess", inputs: \[".*bindings.c"\], output: ".*\.i"' %t |
| 14 | // RUN: grep '"gcc::Compile", inputs: \[".*\.i"\], output: ".*\.s"' %t |
| 15 | // RUN: grep '"gcc::Assemble", inputs: \[".*\.s"\], output: ".*\.o"' %t |
| 16 | // RUN: grep '"gcc::Link", inputs: \[".*\.o"\], output: "a.out"' %t |
Daniel Dunbar | 9d07031 | 2009-03-17 23:39:24 +0000 | [diff] [blame] | 17 | |
Daniel Dunbar | 80737ad | 2009-12-15 22:01:24 +0000 | [diff] [blame] | 18 | // RUN: %clang -ccc-host-triple i386-unknown-unknown -ccc-print-bindings -ccc-no-clang -no-integrated-cpp -pipe %s 2> %t |
Daniel Dunbar | 4fcfde4 | 2009-11-08 01:45:36 +0000 | [diff] [blame] | 19 | // RUN: grep '"gcc::Preprocess", inputs: \[".*bindings.c"\], output: (pipe)' %t |
| 20 | // RUN: grep '"gcc::Compile", inputs: \[(pipe)\], output: (pipe)' %t |
| 21 | // RUN: grep '"gcc::Assemble", inputs: \[(pipe)\], output: ".*\.o"' %t |
| 22 | // RUN: grep '"gcc::Link", inputs: \[".*\.o"\], output: "a.out"' %t |
Daniel Dunbar | 9d07031 | 2009-03-17 23:39:24 +0000 | [diff] [blame] | 23 | |
Daniel Dunbar | 80737ad | 2009-12-15 22:01:24 +0000 | [diff] [blame] | 24 | // RUN: %clang -ccc-host-triple i386-unknown-unknown -ccc-print-bindings -ccc-no-clang -x c-header %s 2> %t |
Daniel Dunbar | 4fcfde4 | 2009-11-08 01:45:36 +0000 | [diff] [blame] | 25 | // RUN: grep '"gcc::Precompile", inputs: \[".*bindings.c"\], output: ".*bindings.c.gch' %t |
Daniel Dunbar | 5796bf4 | 2009-03-18 02:00:31 +0000 | [diff] [blame] | 26 | |
Daniel Dunbar | 9d07031 | 2009-03-17 23:39:24 +0000 | [diff] [blame] | 27 | // Clang control options |
| 28 | |
Daniel Dunbar | 80737ad | 2009-12-15 22:01:24 +0000 | [diff] [blame] | 29 | // RUN: %clang -ccc-host-triple i386-unknown-unknown -ccc-print-bindings -fsyntax-only %s 2> %t |
Daniel Dunbar | 4fcfde4 | 2009-11-08 01:45:36 +0000 | [diff] [blame] | 30 | // RUN: grep '"clang", inputs: \[".*bindings.c"\], output: (nothing)' %t |
Daniel Dunbar | 80737ad | 2009-12-15 22:01:24 +0000 | [diff] [blame] | 31 | // RUN: %clang -ccc-host-triple i386-unknown-unknown -ccc-print-bindings -ccc-no-clang -fsyntax-only %s 2> %t |
Daniel Dunbar | 4fcfde4 | 2009-11-08 01:45:36 +0000 | [diff] [blame] | 32 | // RUN: grep '"gcc::Compile", inputs: \[".*bindings.c"\], output: (nothing)' %t |
Daniel Dunbar | 80737ad | 2009-12-15 22:01:24 +0000 | [diff] [blame] | 33 | // RUN: %clang -ccc-host-triple i386-unknown-unknown -ccc-print-bindings -ccc-no-clang-cxx -fsyntax-only -x c++ %s 2> %t |
Daniel Dunbar | 4fcfde4 | 2009-11-08 01:45:36 +0000 | [diff] [blame] | 34 | // RUN: grep '"gcc::Compile", inputs: \[".*bindings.c"\], output: (nothing)' %t |
Daniel Dunbar | 80737ad | 2009-12-15 22:01:24 +0000 | [diff] [blame] | 35 | // RUN: %clang -ccc-host-triple i386-unknown-unknown -ccc-print-bindings -ccc-clang-cxx -fsyntax-only -x c++ %s 2> %t |
Daniel Dunbar | 4fcfde4 | 2009-11-08 01:45:36 +0000 | [diff] [blame] | 36 | // RUN: grep '"clang", inputs: \[".*bindings.c"\], output: (nothing)' %t |
Daniel Dunbar | 80737ad | 2009-12-15 22:01:24 +0000 | [diff] [blame] | 37 | // RUN: %clang -ccc-host-triple i386-unknown-unknown -ccc-print-bindings -ccc-no-clang-cpp -fsyntax-only -no-integrated-cpp %s 2> %t |
Daniel Dunbar | 4fcfde4 | 2009-11-08 01:45:36 +0000 | [diff] [blame] | 38 | // RUN: grep '"gcc::Preprocess", inputs: \[".*bindings.c"\], output: ".*\.i"' %t |
| 39 | // RUN: grep '"clang", inputs: \[".*\.i"\], output: (nothing)' %t |
Daniel Dunbar | 80737ad | 2009-12-15 22:01:24 +0000 | [diff] [blame] | 40 | // RUN: %clang -ccc-host-triple i386-apple-darwin9 -ccc-print-bindings -ccc-clang-archs i386 %s -S -arch ppc 2> %t |
Daniel Dunbar | 4fcfde4 | 2009-11-08 01:45:36 +0000 | [diff] [blame] | 41 | // RUN: grep '"gcc::Compile", inputs: \[".*bindings.c"\], output: "bindings.s"' %t |
Daniel Dunbar | 80737ad | 2009-12-15 22:01:24 +0000 | [diff] [blame] | 42 | // RUN: %clang -ccc-host-triple i386-apple-darwin9 -ccc-print-bindings -ccc-clang-archs powerpc %s -S -arch ppc 2> %t |
Daniel Dunbar | 4fcfde4 | 2009-11-08 01:45:36 +0000 | [diff] [blame] | 43 | // RUN: grep '"clang", inputs: \[".*bindings.c"\], output: "bindings.s"' %t |
Daniel Dunbar | 9d07031 | 2009-03-17 23:39:24 +0000 | [diff] [blame] | 44 | |
Daniel Dunbar | 80737ad | 2009-12-15 22:01:24 +0000 | [diff] [blame] | 45 | // RUN: %clang -ccc-host-triple powerpc-unknown-unknown -ccc-print-bindings -ccc-clang-archs "" %s -S 2> %t |
Daniel Dunbar | 4fcfde4 | 2009-11-08 01:45:36 +0000 | [diff] [blame] | 46 | // RUN: grep '"clang", inputs: \[".*bindings.c"\], output: "bindings.s"' %t |
Daniel Dunbar | 80737ad | 2009-12-15 22:01:24 +0000 | [diff] [blame] | 47 | // RUN: %clang -ccc-host-triple powerpc-unknown-unknown -ccc-print-bindings -ccc-clang-archs "i386" %s -S 2> %t |
Daniel Dunbar | 4fcfde4 | 2009-11-08 01:45:36 +0000 | [diff] [blame] | 48 | // RUN: grep '"gcc::Compile", inputs: \[".*bindings.c"\], output: "bindings.s"' %t |
Daniel Dunbar | 0f99d2e | 2009-03-24 19:02:31 +0000 | [diff] [blame] | 49 | |
Daniel Dunbar | 8cac5f7 | 2009-03-20 16:06:39 +0000 | [diff] [blame] | 50 | // Darwin bindings |
Daniel Dunbar | 80737ad | 2009-12-15 22:01:24 +0000 | [diff] [blame] | 51 | // RUN: %clang -ccc-host-triple i386-apple-darwin9 -ccc-print-bindings %s 2> %t |
Daniel Dunbar | 4fcfde4 | 2009-11-08 01:45:36 +0000 | [diff] [blame] | 52 | // RUN: grep '"clang", inputs: \[".*bindings.c"\], output: ".*\.s"' %t |
| 53 | // RUN: grep '"darwin::Assemble", inputs: \[".*\.s"\], output: ".*\.o"' %t |
| 54 | // RUN: grep '"darwin::Link", inputs: \[".*\.o"\], output: "a.out"' %t |
Daniel Dunbar | 8cac5f7 | 2009-03-20 16:06:39 +0000 | [diff] [blame] | 55 | |