xref: /minix3/external/bsd/llvm/dist/clang/test/Frontend/ir-support-codegen.ll (revision 0a6a1f1d05b60e214de2f05a7310ddd1f0e590e7)
1; REQUIRES: x86-registered-target
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
8
9target triple = "x86_64-apple-darwin10"
10
11; CHECK: .globl _f0
12; LINUX: .globl f0
13define i32 @f0() nounwind ssp {
14       ret i32 0
15}
16