blob: dd8ad14f6725e6b21a5df21dc8349976cc671c6d [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"
Rafael Espindolaedaa4442013-11-23 16:40:57 +00004// CHECK01: "GNU::Assemble", inputs: ["{{.*}}.s"], output: "{{.*}}.o"
Rafael Espindolaea0c5ec2012-10-02 17:41:03 +00005// CHECK01: "gcc::Link", 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"
24// CHECK14: "darwin::Assemble", inputs: ["{{.*}}.s"], output: "{{.*}}.o"
25// CHECK14: "darwin::Link", inputs: ["{{.*}}.o"], output: "a.out"