1 // General tests that the correct versions of values-*.o are used on 2 // Solaris targets sane. Note that we use sysroot to make these tests 3 // independent of the host system. 4 5 // Check sparc-sun-solaris2.11, 32bit 6 // RUN: %clang -ansi -### %s 2>&1 \ 7 // RUN: --target=sparc-sun-solaris2.11 \ 8 // RUN: --sysroot=%S/Inputs/solaris_sparc_tree \ 9 // RUN: | FileCheck --check-prefix=CHECK-LD-SPARC32-ANSI %s 10 // CHECK-LD-SPARC32-ANSI: values-Xc.o 11 // CHECK-LD-SPARC32-ANSI: values-xpg6.o 12 13 // RUN: %clang -std=c89 -### %s 2>&1 \ 14 // RUN: --target=sparc-sun-solaris2.11 \ 15 // RUN: --sysroot=%S/Inputs/solaris_sparc_tree \ 16 // RUN: | FileCheck --check-prefix=CHECK-LD-SPARC32-C89 %s 17 // CHECK-LD-SPARC32-C89: values-Xc.o 18 // CHECK-LD-SPARC32-C89: values-xpg4.o 19 20 // RUN: %clang -std=c90 -### %s 2>&1 \ 21 // RUN: --target=sparc-sun-solaris2.11 \ 22 // RUN: --sysroot=%S/Inputs/solaris_sparc_tree \ 23 // RUN: | FileCheck --check-prefix=CHECK-LD-SPARC32-C90 %s 24 // CHECK-LD-SPARC32-C90: values-Xc.o 25 // CHECK-LD-SPARC32-C90: values-xpg4.o 26 27 // RUN: %clang -std=iso9899:199409 -### %s 2>&1 \ 28 // RUN: --target=sparc-sun-solaris2.11 \ 29 // RUN: --sysroot=%S/Inputs/solaris_sparc_tree \ 30 // RUN: | FileCheck --check-prefix=CHECK-LD-SPARC32-C94 %s 31 // CHECK-LD-SPARC32-C94: values-Xc.o 32 // CHECK-LD-SPARC32-C94: values-xpg4.o 33 34 // RUN: %clang -std=c11 -### %s 2>&1 \ 35 // RUN: --target=sparc-sun-solaris2.11 \ 36 // RUN: --sysroot=%S/Inputs/solaris_sparc_tree \ 37 // RUN: | FileCheck --check-prefix=CHECK-LD-SPARC32-C11 %s 38 // CHECK-LD-SPARC32-C11: values-Xc.o 39 // CHECK-LD-SPARC32-C11: values-xpg6.o 40 41 // RUN: %clang -std=gnu89 -### %s 2>&1 \ 42 // RUN: --target=sparc-sun-solaris2.11 \ 43 // RUN: --sysroot=%S/Inputs/solaris_sparc_tree \ 44 // RUN: | FileCheck --check-prefix=CHECK-LD-SPARC32-GNU89 %s 45 // CHECK-LD-SPARC32-GNU89: values-Xa.o 46 // CHECK-LD-SPARC32-GNU89: values-xpg4.o 47 48 // RUN: %clang -std=gnu90 -### %s 2>&1 \ 49 // RUN: --target=sparc-sun-solaris2.11 \ 50 // RUN: --sysroot=%S/Inputs/solaris_sparc_tree \ 51 // RUN: | FileCheck --check-prefix=CHECK-LD-SPARC32-GNU90 %s 52 // CHECK-LD-SPARC32-GNU90: values-Xa.o 53 // CHECK-LD-SPARC32-GNU90: values-xpg4.o 54 55 // RUN: %clang -std=gnu11 -### %s 2>&1 \ 56 // RUN: --target=sparc-sun-solaris2.11 \ 57 // RUN: --sysroot=%S/Inputs/solaris_sparc_tree \ 58 // RUN: | FileCheck --check-prefix=CHECK-LD-SPARC32-GNU11 %s 59 // CHECK-LD-SPARC32-GNU11: values-Xa.o 60 // CHECK-LD-SPARC32-GNU11: values-xpg6.o 61 62 // Check i386-pc-solaris2.11, 32bit 63 // RUN: %clang -ansi -### %s 2>&1 \ 64 // RUN: --target=i386-pc-solaris2.11 \ 65 // RUN: --sysroot=%S/Inputs/solaris_x86_tree \ 66 // RUN: | FileCheck --check-prefix=CHECK-LD-X32-ANSI %s 67 // CHECK-LD-X32-ANSI: values-Xc.o 68 // CHECK-LD-X32-ANSI: values-xpg6.o 69