1 // Check that all the following options print a warning when given a
2 // non-existent value. But only one warning.
4 // RUN: not %clangxx --target=i386-unknown-linux -stdlib=nostdlib %s 2>&1 | FileCheck --check-prefix=STDLIB %s
5 // STDLIB: error: invalid library name in argument '-stdlib=nostdlib'
8 // RUN: not %clangxx --target=i386-unknown-linux -rtlib=nortlib --unwindlib=libgcc %s 2>&1 | FileCheck --check-prefix=RTLIB %s
9 // RTLIB: error: invalid runtime library name in argument '-rtlib=nortlib'
12 // RUN: not %clangxx --target=i386-unknown-linux -unwindlib=nounwindlib %s 2>&1 | FileCheck --check-prefix=UNWINDLIB %s
13 // UNWINDLIB: error: invalid unwind library name in argument '-unwindlib=nounwindlib'