xref: /llvm-project/clang/test/Driver/undefined-libs.cpp (revision 3db1ade368e538ba795486eea4923e331a8dde5a)
1c6a1b16dSNico Weber // Check that all the following options print a warning when given a
2c6a1b16dSNico Weber // non-existent value. But only one warning.
3a6439b52STimm Bäder 
4c6a1b16dSNico Weber // RUN: not %clangxx --target=i386-unknown-linux -stdlib=nostdlib %s 2>&1 | FileCheck --check-prefix=STDLIB %s
5a6439b52STimm Bäder // STDLIB: error: invalid library name in argument '-stdlib=nostdlib'
6a6439b52STimm Bäder // STDLIB-EMPTY:
7c6a1b16dSNico Weber 
8*3db1ade3SFangrui Song // RUN: not %clangxx --target=i386-unknown-linux -rtlib=nortlib --unwindlib=libgcc %s 2>&1 | FileCheck --check-prefix=RTLIB %s
9a6439b52STimm Bäder // RTLIB: error: invalid runtime library name in argument '-rtlib=nortlib'
10a6439b52STimm Bäder // RTLIB-EMPTY:
11c6a1b16dSNico Weber 
12c6a1b16dSNico Weber // RUN: not %clangxx --target=i386-unknown-linux -unwindlib=nounwindlib %s 2>&1 | FileCheck --check-prefix=UNWINDLIB %s
13a6439b52STimm Bäder // UNWINDLIB: error: invalid unwind library name in argument '-unwindlib=nounwindlib'
14a6439b52STimm Bäder // UNWINDLIB-EMPTY:
15