apple-version.ll 1.1 KB

123456789101112131415161718192021222324
  1. ; RUN: llvm-link %s %S/Inputs/apple-version/1.ll -S -o - 2>%t.err | FileCheck %s -check-prefix=CHECK1
  2. ; RUN: cat %t.err | FileCheck --check-prefix=WARN1 --allow-empty %s
  3. ; RUN: llvm-link %s %S/Inputs/apple-version/2.ll -S -o - 2>%t.err | FileCheck %s -check-prefix=CHECK2
  4. ; RUN: cat %t.err | FileCheck --check-prefix=WARN2 --allow-empty %s
  5. ; RUN: llvm-link %s %S/Inputs/apple-version/3.ll -S -o /dev/null 2>%t.err
  6. ; RUN: cat %t.err | FileCheck --check-prefix=WARN3 %s
  7. ; RUN: llvm-link %s %S/Inputs/apple-version/4.ll -S -o /dev/null 2>%t.err
  8. ; RUN: cat %t.err | FileCheck --check-prefix=WARN4 --allow-empty %s
  9. ; Check that the triple that has the larger version number is chosen and no
  10. ; warnings are issued when the Triples differ only in version numbers.
  11. ; CHECK1: target triple = "x86_64-apple-macosx10.10.0"
  12. ; WARN1-NOT: WARNING
  13. ; CHECK2: target triple = "x86_64-apple-macosx10.9.0"
  14. ; WARN2-NOT: WARNING
  15. ; i386 and x86_64 map to different ArchType enums.
  16. ; WARN3: WARNING: Linking two modules of different target triples
  17. ; x86_64h and x86_64 map to the same ArchType enum.
  18. ; WARN4-NOT: WARNING
  19. target triple = "x86_64-apple-macosx10.9.0"