blob: 3dc3c0a571bd3b9cd5089d69940557f97fe67b4b [file] [log] [blame]
NAKAMURA Takumi0acd8a72013-12-04 03:41:33 +00001; REQUIRES: x86-registered-target
Rafael Espindolad5e81e52013-12-20 22:01:25 +00002; 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 Dunbar6f8362c2010-06-07 23:27:59 +00008
9target triple = "x86_64-apple-darwin10"
10
11; CHECK: .globl _f0
Rafael Espindolad5e81e52013-12-20 22:01:25 +000012; LINUX: .globl f0
Daniel Dunbar6f8362c2010-06-07 23:27:59 +000013define i32 @f0() nounwind ssp {
14 ret i32 0
15}