[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / Driver / undefined-libs.cpp
blob63f4bddfcc0f436d5a0d7a346c8c7f870b300e43
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'
6 // STDLIB-EMPTY:
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:
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: