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
7 
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++"
11