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