ir-support-codegen.ll 464 B

123456789101112131415
  1. ; REQUIRES: x86-registered-target
  2. ; RUN: %clang_cc1 -triple x86_64-apple-darwin10 -S -o - %s | FileCheck %s
  3. ; RUN: %clang_cc1 -triple x86_64-pc-linux -S -o %t %s 2>&1 | \
  4. ; RUN: FileCheck --check-prefix=WARN %s
  5. ; WARN: warning: overriding the module target triple with x86_64-pc-linux
  6. ; RUN: FileCheck --check-prefix=LINUX %s < %t
  7. target triple = "x86_64-apple-darwin10"
  8. ; CHECK: .globl _f0
  9. ; LINUX: .globl f0
  10. define i32 @f0() nounwind ssp {
  11. ret i32 0
  12. }