34 lines · c
1// Basic binding.2// RUN: %clang -target i386-unknown-unknown -ccc-print-bindings -no-integrated-as %s 2>&1 | FileCheck %s --check-prefix=CHECK013// 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 options8 9// RUN: %clang -target i386-unknown-unknown -ccc-print-bindings -fsyntax-only %s 2>&1 | FileCheck %s --check-prefix=CHECK0510// 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=CHECK0813// 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=CHECK1116// 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=CHECK1219// CHECK12: "clang", inputs: ["{{.*}}bindings.c"], output: "bindings.s"20 21// Darwin bindings22// RUN: %clang -target i386-apple-darwin11 -no-integrated-as -ccc-print-bindings %s 2>&1 | FileCheck %s --check-prefix=CHECK1423// 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 binding28// RUN: %clang -target x86_64-linux-gnu -ccc-print-bindings --emit-static-lib %s 2>&1 | FileCheck %s --check-prefix=CHECK1529// CHECK15: "x86_64-unknown-linux-gnu" - "GNU::StaticLibTool", inputs: ["{{.*}}.o"], output: "a.out"30 31// Darwin StaticLibTool binding32// RUN: %clang -target i386-apple-darwin11 -ccc-print-bindings --emit-static-lib %s 2>&1 | FileCheck %s --check-prefix=CHECK1633// CHECK16: "i386-apple-darwin11" - "darwin::StaticLibTool", inputs: ["{{.*}}.o"], output: "a.out"34