xref: /llvm-project/clang/test/Driver/p.c (revision f39c399d9d15efe8309d8aa3d0ecf62205e6c474)
19f07256aSFangrui Song /// For most targets -p is legacy. We used to report -Wunused-command-line-argument.
2*f39c399dSFangrui Song // RUN: not %clang -### --target=x86_64-unknown-linux-gnu -c -p %s 2>&1 | FileCheck %s --check-prefix=ERR
39f07256aSFangrui Song 
49f07256aSFangrui Song // RUN: %clang -### --target=x86_64-unknown-openbsd -c -p %s 2>&1 | FileCheck %s --implicit-check-not=error:
59f07256aSFangrui Song // RUN: %clang -### --target=powerpc64-ibm-aix -c -p %s 2>&1 | FileCheck %s --implicit-check-not=error:
69f07256aSFangrui Song 
79f07256aSFangrui Song // ERR: error: unsupported option '-p' for target {{.*}}
8