| 1 |
// Basic binding. |
| 2 |
// RUN: %clang -target i386-unknown-unknown -ccc-print-bindings -no-integrated-as %s 2>&1 | FileCheck %s --check-prefix=CHECK01 |
| 3 |
// CHECK01: "clang", inputs: ["{{.*}}bindings.c"], output: "{{.*}}.s" |
| 4 |
// CHECK01: "GNU::Assembler", inputs: ["{{.*}}.s"], output: "{{.*}}.o" |
| 5 |
// CHECK01: "gcc::Linker", inputs: ["{{.*}}.o"], output: "a.out" |
| 6 |
|
| 7 |
// Clang control options |
| 8 |
|
| 9 |
// RUN: %clang -target i386-unknown-unknown -ccc-print-bindings -fsyntax-only %s 2>&1 | FileCheck %s --check-prefix=CHECK05 |
| 10 |
// CHECK05: "clang", inputs: ["{{.*}}bindings.c"], output: (nothing) |
| 11 |
|
| 12 |
// RUN: %clang -target i386-unknown-unknown -ccc-print-bindings -fsyntax-only -x c++ %s 2>&1 | FileCheck %s --check-prefix=CHECK08 |
| 13 |
// CHECK08: "clang", inputs: ["{{.*}}bindings.c"], output: (nothing) |
| 14 |
|
| 15 |
// RUN: %clang -target i386-apple-darwin11 -ccc-print-bindings %s -S -arch arm 2>&1 | FileCheck %s --check-prefix=CHECK11 |
| 16 |
// CHECK11: "clang", inputs: ["{{.*}}bindings.c"], output: "bindings.s" |
| 17 |
|
| 18 |
// RUN: %clang -target powerpc-unknown-unknown -ccc-print-bindings %s -S 2>&1 | FileCheck %s --check-prefix=CHECK12 |
| 19 |
// CHECK12: "clang", inputs: ["{{.*}}bindings.c"], output: "bindings.s" |
| 20 |
|
| 21 |
// Darwin bindings |
| 22 |
// RUN: %clang -target i386-apple-darwin11 -no-integrated-as -ccc-print-bindings %s 2>&1 | FileCheck %s --check-prefix=CHECK14 |
| 23 |
// CHECK14: "clang", inputs: ["{{.*}}bindings.c"], output: "{{.*}}.s" |
| 24 |
// CHECK14: "darwin::Assembler", inputs: ["{{.*}}.s"], output: "{{.*}}.o" |
| 25 |
// CHECK14: "darwin::Linker", inputs: ["{{.*}}.o"], output: "a.out" |
| 26 |
|
| 27 |
// GNU StaticLibTool binding |
| 28 |
// RUN: %clang -target x86_64-linux-gnu -ccc-print-bindings --emit-static-lib %s 2>&1 | FileCheck %s --check-prefix=CHECK15 |
| 29 |
// CHECK15: "x86_64-unknown-linux-gnu" - "GNU::StaticLibTool", inputs: ["{{.*}}.o"], output: "a.out" |
| 30 |
|
| 31 |
// Darwin StaticLibTool binding |
| 32 |
// RUN: %clang -target i386-apple-darwin11 -ccc-print-bindings --emit-static-lib %s 2>&1 | FileCheck %s --check-prefix=CHECK16 |
| 33 |
// CHECK16: "i386-apple-darwin11" - "darwin::StaticLibTool", inputs: ["{{.*}}.o"], output: "a.out" |