NAKAMURA Takumi | 0acd8a7 | 2013-12-04 03:41:33 +0000 | [diff] [blame] | 1 | ; REQUIRES: x86-registered-target |
Rafael Espindola | d5e81e5 | 2013-12-20 22:01:25 +0000 | [diff] [blame] | 2 | ; RUN: %clang_cc1 -triple x86_64-apple-darwin10 -S -o - %s | FileCheck %s |
| 3 | |
| 4 | ; RUN: %clang_cc1 -triple x86_64-pc-linux -S -o %t %s 2>&1 | \ |
| 5 | ; RUN: FileCheck --check-prefix=WARN %s |
| 6 | ; WARN: warning: overriding the module target triple with x86_64-pc-linux |
| 7 | ; RUN: FileCheck --check-prefix=LINUX %s < %t |
Daniel Dunbar | 6f8362c | 2010-06-07 23:27:59 +0000 | [diff] [blame] | 8 | |
| 9 | target triple = "x86_64-apple-darwin10" |
| 10 | |
| 11 | ; CHECK: .globl _f0 |
Rafael Espindola | d5e81e5 | 2013-12-20 22:01:25 +0000 | [diff] [blame] | 12 | ; LINUX: .globl f0 |
Daniel Dunbar | 6f8362c | 2010-06-07 23:27:59 +0000 | [diff] [blame] | 13 | define i32 @f0() nounwind ssp { |
| 14 | ret i32 0 |
| 15 | } |