Home | History | Annotate | Download | only in Driver
      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-darwin9 -ccc-print-bindings %s -S -arch ppc 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-darwin9 -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