llvm-project/clang/test/Driver/nostdlibxx.cpp

9 lines
230 B
C++

// 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