xref: /aosp_15_r20/external/clang/test/Frontend/ir-support-codegen.ll (revision 67e74705e28f6214e480b399dd47ea732279e315)
1*67e74705SXin Li; REQUIRES: x86-registered-target
2*67e74705SXin Li; RUN: %clang_cc1 -triple x86_64-apple-darwin10 -S -o - %s | FileCheck %s
3*67e74705SXin Li
4*67e74705SXin Li; RUN: %clang_cc1 -triple x86_64-pc-linux -S -o %t %s 2>&1 | \
5*67e74705SXin Li; RUN: FileCheck --check-prefix=WARN %s
6*67e74705SXin Li; WARN: warning: overriding the module target triple with x86_64-pc-linux
7*67e74705SXin Li; RUN: FileCheck --check-prefix=LINUX %s < %t
8*67e74705SXin Li
9*67e74705SXin Litarget triple = "x86_64-apple-darwin10"
10*67e74705SXin Li
11*67e74705SXin Li; CHECK: .globl _f0
12*67e74705SXin Li; LINUX: .globl f0
13*67e74705SXin Lidefine i32 @f0() nounwind ssp {
14*67e74705SXin Li       ret i32 0
15*67e74705SXin Li}
16