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 -no-canonical-prefixes -ansi %s -### -o %t.o 2>&1 \
7 // RUN:     --target=sparc-sun-solaris2.11 \
8 // RUN:     --gcc-toolchain="" \
9 // RUN:     --sysroot=%S/Inputs/solaris_sparc_tree \
10 // RUN:   | FileCheck --check-prefix=CHECK-LD-SPARC32-ANSI %s
11 // CHECK-LD-SPARC32-ANSI: values-Xc.o
12 // CHECK-LD-SPARC32-ANSI: values-xpg6.o
13 
14 // RUN: %clang -no-canonical-prefixes -std=c++98 %s -### -o %t.o 2>&1 \
15 // RUN:     --target=sparc-sun-solaris2.11 \
16 // RUN:     --gcc-toolchain="" \
17 // RUN:     --sysroot=%S/Inputs/solaris_sparc_tree \
18 // RUN:   | FileCheck --check-prefix=CHECK-LD-SPARC32-CPP98 %s
19 // CHECK-LD-SPARC32-CPP98: values-Xc.o
20 // CHECK-LD-SPARC32-CPP98: values-xpg6.o
21 
22 // RUN: %clang -no-canonical-prefixes -std=c++11 %s -### -o %t.o 2>&1 \
23 // RUN:     --target=sparc-sun-solaris2.11 \
24 // RUN:     --gcc-toolchain="" \
25 // RUN:     --sysroot=%S/Inputs/solaris_sparc_tree \
26 // RUN:   | FileCheck --check-prefix=CHECK-LD-SPARC32-CPP11 %s
27 // CHECK-LD-SPARC32-CPP11: values-Xc.o
28 // CHECK-LD-SPARC32-CPP11: values-xpg6.o
29 
30 // RUN: %clang -no-canonical-prefixes -std=gnu++98 %s -### -o %t.o 2>&1 \
31 // RUN:     --target=sparc-sun-solaris2.11 \
32 // RUN:     --gcc-toolchain="" \
33 // RUN:     --sysroot=%S/Inputs/solaris_sparc_tree \
34 // RUN:   | FileCheck --check-prefix=CHECK-LD-SPARC32-GNUPP98 %s
35 // CHECK-LD-SPARC32-GNUPP98: values-Xa.o
36 // CHECK-LD-SPARC32-GNUPP98: values-xpg6.o
37 
38 // Check i386-pc-solaris2.11, 32bit
39 // RUN: %clang -no-canonical-prefixes -ANSI %s -### -o %t.o 2>&1 \
40 // RUN:     --target=i386-pc-solaris2.11 \
41 // RUN:     --gcc-toolchain="" \
42 // RUN:     --sysroot=%S/Inputs/solaris_x86_tree \
43 // RUN:   | FileCheck --check-prefix=CHECK-LD-X32-ANSI %s
44 // CHECK-LD-X32-ANSI: values-Xa.o
45 // CHECK-LD-X32-ANSI: values-xpg6.o
46