[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / Driver / p.c
blob102cb3c335276bd1bebdc608050a716c8b864c6b
1 /// For most targets -p is legacy. We used to report -Wunused-command-line-argument.
2 // RUN: %clang -### --target=x86_64-unknown-linux-gnu -c -p %s 2>&1 | FileCheck %s --check-prefix=ERR
4 // RUN: %clang -### --target=x86_64-unknown-openbsd -c -p %s 2>&1 | FileCheck %s --implicit-check-not=error:
5 // RUN: %clang -### --target=powerpc64-ibm-aix -c -p %s 2>&1 | FileCheck %s --implicit-check-not=error:
7 // ERR: error: unsupported option '-p' for target {{.*}}