1f4a2713aSLionel Sambuc // Basic binding. 2*0a6a1f1dSLionel Sambuc // RUN: %clang -target i386-unknown-unknown -ccc-print-bindings -no-integrated-as %s 2>&1 | FileCheck %s --check-prefix=CHECK01 3f4a2713aSLionel Sambuc // CHECK01: "clang", inputs: ["{{.*}}bindings.c"], output: "{{.*}}.s" 4*0a6a1f1dSLionel Sambuc // CHECK01: "GNU::Assemble", inputs: ["{{.*}}.s"], output: "{{.*}}.o" 5f4a2713aSLionel Sambuc // CHECK01: "gcc::Link", inputs: ["{{.*}}.o"], output: "a.out" 6f4a2713aSLionel Sambuc 7f4a2713aSLionel Sambuc // Clang control options 8f4a2713aSLionel Sambuc 9f4a2713aSLionel Sambuc // RUN: %clang -target i386-unknown-unknown -ccc-print-bindings -fsyntax-only %s 2>&1 | FileCheck %s --check-prefix=CHECK05 10f4a2713aSLionel Sambuc // CHECK05: "clang", inputs: ["{{.*}}bindings.c"], output: (nothing) 11f4a2713aSLionel Sambuc 12f4a2713aSLionel Sambuc // RUN: %clang -target i386-unknown-unknown -ccc-print-bindings -fsyntax-only -x c++ %s 2>&1 | FileCheck %s --check-prefix=CHECK08 13f4a2713aSLionel Sambuc // CHECK08: "clang", inputs: ["{{.*}}bindings.c"], output: (nothing) 14f4a2713aSLionel Sambuc 15f4a2713aSLionel Sambuc // RUN: %clang -target i386-apple-darwin9 -ccc-print-bindings %s -S -arch ppc 2>&1 | FileCheck %s --check-prefix=CHECK11 16f4a2713aSLionel Sambuc // CHECK11: "clang", inputs: ["{{.*}}bindings.c"], output: "bindings.s" 17f4a2713aSLionel Sambuc 18f4a2713aSLionel Sambuc // RUN: %clang -target powerpc-unknown-unknown -ccc-print-bindings %s -S 2>&1 | FileCheck %s --check-prefix=CHECK12 19f4a2713aSLionel Sambuc // CHECK12: "clang", inputs: ["{{.*}}bindings.c"], output: "bindings.s" 20f4a2713aSLionel Sambuc 21f4a2713aSLionel Sambuc // Darwin bindings 22f4a2713aSLionel Sambuc // RUN: %clang -target i386-apple-darwin9 -no-integrated-as -ccc-print-bindings %s 2>&1 | FileCheck %s --check-prefix=CHECK14 23f4a2713aSLionel Sambuc // CHECK14: "clang", inputs: ["{{.*}}bindings.c"], output: "{{.*}}.s" 24f4a2713aSLionel Sambuc // CHECK14: "darwin::Assemble", inputs: ["{{.*}}.s"], output: "{{.*}}.o" 25f4a2713aSLionel Sambuc // CHECK14: "darwin::Link", inputs: ["{{.*}}.o"], output: "a.out" 26