e2213159fa
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
7 lines
246 B
C
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'?
|