teak-llvm/clang/test/Driver/nolibc.c
Petr Hosek 37f30231ba [Driver][Gnu] Support -nolibc flag
This can be used to disable libc linking. This flag is supported by
GCC since version 9 as well as some Clang target toolchains.

Differential Revision: https://reviews.llvm.org/D58326

llvm-svn: 354210
2019-02-17 02:42:48 +00:00

6 lines
165 B
C

// RUN: %clang -target i686-pc-linux-gnu -### -rtlib=libgcc -nolibc %s 2>&1 | FileCheck %s
// CHECK: crtbegin
// CHECK: "-lgcc"
// CHECK-NOT: "-lc"
// CHECK: crtend