llvm-project/clang/test/Misc/driver-verify.c
Joseph Huber e2213159fa [Clang] Make Clang driver suggest '-Xclang' for CC1 options passed to the driver
This patch adds an additional check for if an options passed to the
Clang driver could've been intended for the clang compiler. This is
primarily done for the times when a user attempts to pass an option like
`-ast-dump` to the driver instead.

Reviewed By: MaskRay, aaron.ballman

Differential Revision: https://reviews.llvm.org/D134550
2022-09-24 07:58:40 -05:00

7 lines
246 B
C

// RUN: not %clang -verify %s 2>&1 | FileCheck %s
// RUN: %clang_cc1 -verify %s
// expected-no-diagnostics
// Test that -verify is strictly rejected as unknown by the driver.
// CHECK: unknown argument '-verify'; did you mean '-Xclang -verify'?