brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.6 KiB · 566252f Raw
41 lines · cpp
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=c++98 -### %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-CPP98 %s17// CHECK-LD-SPARC32-CPP98: values-Xc.o18// CHECK-LD-SPARC32-CPP98: values-xpg6.o19 20// RUN: %clang -std=c++11 -### %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-CPP11 %s24// CHECK-LD-SPARC32-CPP11: values-Xc.o25// CHECK-LD-SPARC32-CPP11: values-xpg6.o26 27// RUN: %clang -std=gnu++98 -### %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-GNUPP98 %s31// CHECK-LD-SPARC32-GNUPP98: values-Xa.o32// CHECK-LD-SPARC32-GNUPP98: values-xpg6.o33 34// Check i386-pc-solaris2.11, 32bit35// RUN: %clang -ANSI -### %s 2>&1 \36// RUN:     --target=i386-pc-solaris2.11 \37// RUN:     --sysroot=%S/Inputs/solaris_x86_tree \38// RUN:   | FileCheck --check-prefix=CHECK-LD-X32-ANSI %s39// CHECK-LD-X32-ANSI: values-Xa.o40// CHECK-LD-X32-ANSI: values-xpg6.o41