1 // Check that all the following options print a warning when given a 2 // non-existent value. But only one warning. 3 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' 6 // STDLIB-EMPTY: 7 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' 10 // RTLIB-EMPTY: 11 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' 14 // UNWINDLIB-EMPTY: 15