[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / Driver / nodefaultlib.c
blobe6c7d217ad34a294f42940c1802e6c9328b24fd0
1 // RUN: %clang -target i686-pc-linux-gnu -### -rtlib=libgcc -nodefaultlibs %s 2>&1 | FileCheck -check-prefix=TEST1 %s
2 // TEST1-NOT: start-group
3 // TEST1-NOT: "-lgcc"
4 // TEST1-NOT: "-lc"
5 // TEST1: crtbegin
6 // TEST1: crtend
8 // RUN: %clang -target i686-pc-linux-gnu -stdlib=libc++ -nodefaultlibs -lstdc++ -### %s 2>&1 | FileCheck -check-prefix=TEST2 %s
9 // TEST2-NOT: "-lc++"
10 // TEST2: "-lstdc++"