llvm-project/clang/test/Frontend/plugin-unknown.c
Nico Weber ca27a2b037 Validate -add-plugin arguments.
-plugin already prints an error if the name of an unknown plugin is passed.
-add-plugin used to silently ignore that, now it errors too.

Differential Revision: https://reviews.llvm.org/D56273

llvm-svn: 350340
2019-01-03 18:26:06 +00:00

6 lines
218 B
C

// RUN: not %clang_cc1 -plugin asdf %s 2>&1 | FileCheck %s
// RUN: not %clang_cc1 -add-plugin asdf %s 2>&1 | FileCheck --check-prefix=ADD %s
// CHECK: unable to find plugin 'asdf'
// ADD: unable to find plugin 'asdf'