Mercurial > hg > CbC > CbC_llvm
view clang/test/Driver/nostdlibxx.cpp @ 222:81f6424ef0e3 llvm-original
LLVM original branch
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Sun, 18 Jul 2021 22:10:01 +0900 |
parents | 1d019706d866 |
children |
line wrap: on
line source
// RUN: %clangxx -target i686-pc-linux-gnu -### -nostdlib++ %s 2> %t // RUN: FileCheck < %t %s // We should still have -lm and the C standard libraries, but not -lstdc++. // CHECK-NOT: -lstdc++ // CHECK-NOT: -lc++ // CHECK: -lm // Make sure -lstdc++ isn't rewritten to the default stdlib when -nostdlib++ is // used. // // RUN: %clangxx -target i686-pc-linux-gnu -### \ // RUN: -nostdlib++ -stdlib=libc++ -lstdc++ %s 2> %t // RUN: FileCheck --check-prefix=CHECK-RESERVED-LIB-REWRITE < %t %s // CHECK-RESERVED-LIB-REWRITE: -lstdc++ // CHECK-RESERVED-LIB-REWRITE-NOT: -lc++