brintos

brintos / llvm-project-archived public Read only

0
0
Text · 579 B · 48d14e1 Raw
18 lines · cpp
1// RUN: %clangxx -target i686-pc-linux-gnu -### -nostdlib++ %s 2> %t2// RUN: FileCheck < %t %s3 4// We should still have -lm and the C standard libraries, but not -lstdc++.5 6// CHECK-NOT: -lstdc++7// CHECK-NOT: -lc++8// CHECK: -lm9 10// Make sure -lstdc++ isn't rewritten to the default stdlib when -nostdlib++ is11// used.12//13// RUN: %clangxx -target i686-pc-linux-gnu -### \14// RUN:     -nostdlib++ -stdlib=libc++ -lstdc++ %s 2> %t15// RUN: FileCheck --check-prefix=CHECK-RESERVED-LIB-REWRITE < %t %s16// CHECK-RESERVED-LIB-REWRITE: -lstdc++17// CHECK-RESERVED-LIB-REWRITE-NOT: -lc++18