mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-02-14 06:29:38 +00:00
![Nirav Dave](/assets/img/avatar_default.png)
The Driver only checked if nostdlib was set when deciding to add reserved_lib_stdcxx, but as nostdlib is always exactly nodefaultlibs and nostartfiles we should be checking one (clearly nodefaultlibs in the case) as well. This appears to be the only such instance of this in the codebase. Differential Revision: http://reviews.llvm.org/D14935 llvm-svn: 253990
11 lines
380 B
C
11 lines
380 B
C
// RUN: %clang -target i686-pc-linux-gnu -### -nodefaultlibs %s 2>&1 | FileCheck -check-prefix=TEST1 %s
|
|
// TEST1-NOT: start-group
|
|
// TEST1-NOT: "-lgcc"
|
|
// TEST1-NOT: "-lc"
|
|
// TEST1: crtbegin
|
|
// TEST1: crtend
|
|
|
|
// RUN: %clang -target i686-pc-linux-gnu -stdlib=libc++ -nodefaultlibs -lstdc++ -### %s 2>&1 | FileCheck -check-prefix=TEST2 %s
|
|
// TEST2-NOT: "-lc++"
|
|
// TEST2: "-lstdc++"
|