blob: 880667b7393486aa283b8c992870405fd6437764 [file] [log] [blame]
Daniel Dunbar0071da92009-03-17 23:39:24 +00001// Basic binding.
Rafael Espindolaa8b3b682013-11-25 18:50:53 +00002// RUN: %clang -target i386-unknown-unknown -ccc-print-bindings -no-integrated-as %s 2>&1 | FileCheck %s --check-prefix=CHECK01
Rafael Espindolaea0c5ec2012-10-02 17:41:03 +00003// CHECK01: "clang", inputs: ["{{.*}}bindings.c"], output: "{{.*}}.s"
Douglas Katzman95354292015-06-23 20:42:09 +00004// CHECK01: "GNU::Assembler", inputs: ["{{.*}}.s"], output: "{{.*}}.o"
5// CHECK01: "gcc::Linker", inputs: ["{{.*}}.o"], output: "a.out"
Daniel Dunbar0071da92009-03-17 23:39:24 +00006
Daniel Dunbar0071da92009-03-17 23:39:24 +00007// Clang control options
8
Rafael Espindolaea0c5ec2012-10-02 17:41:03 +00009// 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)
Daniel Dunbar0071da92009-03-17 23:39:24 +000011
Rafael Espindola84619412012-10-30 00:13:16 +000012// RUN: %clang -target i386-unknown-unknown -ccc-print-bindings -fsyntax-only -x c++ %s 2>&1 | FileCheck %s --check-prefix=CHECK08
Rafael Espindolaea0c5ec2012-10-02 17:41:03 +000013// CHECK08: "clang", inputs: ["{{.*}}bindings.c"], output: (nothing)
14
Rafael Espindolafc3fc0c2012-10-09 20:46:28 +000015// RUN: %clang -target i386-apple-darwin9 -ccc-print-bindings %s -S -arch ppc 2>&1 | FileCheck %s --check-prefix=CHECK11
Rafael Espindolaea0c5ec2012-10-02 17:41:03 +000016// CHECK11: "clang", inputs: ["{{.*}}bindings.c"], output: "bindings.s"
17
Rafael Espindolafc3fc0c2012-10-09 20:46:28 +000018// RUN: %clang -target powerpc-unknown-unknown -ccc-print-bindings %s -S 2>&1 | FileCheck %s --check-prefix=CHECK12
Rafael Espindolaea0c5ec2012-10-02 17:41:03 +000019// CHECK12: "clang", inputs: ["{{.*}}bindings.c"], output: "bindings.s"
20
Daniel Dunbarbe220842009-03-20 16:06:39 +000021// Darwin bindings
Rafael Espindolaea0c5ec2012-10-02 17:41:03 +000022// 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"
Douglas Katzman95354292015-06-23 20:42:09 +000024// CHECK14: "darwin::Assembler", inputs: ["{{.*}}.s"], output: "{{.*}}.o"
25// CHECK14: "darwin::Linker", inputs: ["{{.*}}.o"], output: "a.out"