2009-03-18 07:39:24 +08:00
|
|
|
// Basic binding.
|
2013-11-26 02:50:53 +08:00
|
|
|
// RUN: %clang -target i386-unknown-unknown -ccc-print-bindings -no-integrated-as %s 2>&1 | FileCheck %s --check-prefix=CHECK01
|
2012-10-03 01:41:03 +08:00
|
|
|
// CHECK01: "clang", inputs: ["{{.*}}bindings.c"], output: "{{.*}}.s"
|
2015-06-24 04:42:09 +08:00
|
|
|
// CHECK01: "GNU::Assembler", inputs: ["{{.*}}.s"], output: "{{.*}}.o"
|
|
|
|
// CHECK01: "gcc::Linker", inputs: ["{{.*}}.o"], output: "a.out"
|
2009-11-08 09:45:36 +08:00
|
|
|
|
2009-03-18 07:39:24 +08:00
|
|
|
// Clang control options
|
|
|
|
|
2012-10-03 01:41:03 +08:00
|
|
|
// RUN: %clang -target i386-unknown-unknown -ccc-print-bindings -fsyntax-only %s 2>&1 | FileCheck %s --check-prefix=CHECK05
|
|
|
|
// CHECK05: "clang", inputs: ["{{.*}}bindings.c"], output: (nothing)
|
2009-03-25 03:02:31 +08:00
|
|
|
|
2012-10-30 08:13:16 +08:00
|
|
|
// RUN: %clang -target i386-unknown-unknown -ccc-print-bindings -fsyntax-only -x c++ %s 2>&1 | FileCheck %s --check-prefix=CHECK08
|
2012-10-03 01:41:03 +08:00
|
|
|
// CHECK08: "clang", inputs: ["{{.*}}bindings.c"], output: (nothing)
|
|
|
|
|
2012-10-10 04:46:28 +08:00
|
|
|
// RUN: %clang -target i386-apple-darwin9 -ccc-print-bindings %s -S -arch ppc 2>&1 | FileCheck %s --check-prefix=CHECK11
|
2012-10-03 01:41:03 +08:00
|
|
|
// CHECK11: "clang", inputs: ["{{.*}}bindings.c"], output: "bindings.s"
|
|
|
|
|
2012-10-10 04:46:28 +08:00
|
|
|
// RUN: %clang -target powerpc-unknown-unknown -ccc-print-bindings %s -S 2>&1 | FileCheck %s --check-prefix=CHECK12
|
2012-10-03 01:41:03 +08:00
|
|
|
// CHECK12: "clang", inputs: ["{{.*}}bindings.c"], output: "bindings.s"
|
|
|
|
|
|
|
|
// Darwin bindings
|
|
|
|
// RUN: %clang -target i386-apple-darwin9 -no-integrated-as -ccc-print-bindings %s 2>&1 | FileCheck %s --check-prefix=CHECK14
|
|
|
|
// CHECK14: "clang", inputs: ["{{.*}}bindings.c"], output: "{{.*}}.s"
|
2015-06-24 04:42:09 +08:00
|
|
|
// CHECK14: "darwin::Assembler", inputs: ["{{.*}}.s"], output: "{{.*}}.o"
|
|
|
|
// CHECK14: "darwin::Linker", inputs: ["{{.*}}.o"], output: "a.out"
|
2020-05-28 02:49:25 +08:00
|
|
|
|
|
|
|
// GNU StaticLibTool binding
|
|
|
|
// RUN: %clang -target x86_64-linux-gnu -ccc-print-bindings --emit-static-lib %s 2>&1 | FileCheck %s --check-prefix=CHECK15
|
|
|
|
// CHECK15: "x86_64-unknown-linux-gnu" - "GNU::StaticLibTool", inputs: ["{{.*}}.o"], output: "a.out"
|
2021-09-09 04:49:16 +08:00
|
|
|
|
|
|
|
// Darwin StaticLibTool binding
|
|
|
|
// RUN: %clang -target i386-apple-darwin9 -ccc-print-bindings --emit-static-lib %s 2>&1 | FileCheck %s --check-prefix=CHECK16
|
|
|
|
// CHECK16: "i386-apple-darwin9" - "darwin::StaticLibTool", inputs: ["{{.*}}.o"], output: "a.out"
|