69 lines · c
1// General tests that the correct versions of values-*.o are used on2// Solaris targets sane. Note that we use sysroot to make these tests3// independent of the host system.4 5// Check sparc-sun-solaris2.11, 32bit6// 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 %s10// CHECK-LD-SPARC32-ANSI: values-Xc.o11// CHECK-LD-SPARC32-ANSI: values-xpg6.o12 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 %s17// CHECK-LD-SPARC32-C89: values-Xc.o18// CHECK-LD-SPARC32-C89: values-xpg4.o19 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 %s24// CHECK-LD-SPARC32-C90: values-Xc.o25// CHECK-LD-SPARC32-C90: values-xpg4.o26 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 %s31// CHECK-LD-SPARC32-C94: values-Xc.o32// CHECK-LD-SPARC32-C94: values-xpg4.o33 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 %s38// CHECK-LD-SPARC32-C11: values-Xc.o39// CHECK-LD-SPARC32-C11: values-xpg6.o40 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 %s45// CHECK-LD-SPARC32-GNU89: values-Xa.o46// CHECK-LD-SPARC32-GNU89: values-xpg4.o47 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 %s52// CHECK-LD-SPARC32-GNU90: values-Xa.o53// CHECK-LD-SPARC32-GNU90: values-xpg4.o54 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 %s59// CHECK-LD-SPARC32-GNU11: values-Xa.o60// CHECK-LD-SPARC32-GNU11: values-xpg6.o61 62// Check i386-pc-solaris2.11, 32bit63// 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 %s67// CHECK-LD-X32-ANSI: values-Xc.o68// CHECK-LD-X32-ANSI: values-xpg6.o69