diff options
author | Reid Kleckner <reid@kleckner.net> | 2014-12-17 20:23:11 +0000 |
---|---|---|
committer | Reid Kleckner <reid@kleckner.net> | 2014-12-17 20:23:11 +0000 |
commit | dccbabfacf4b993e2cbe394c814c47b4dca17df8 (patch) | |
tree | 7021d1441c7a83424623504b9fc9e5a39e4d91b1 /clang/test/Frontend/verify-unknown-arg.c | |
parent | 390fe4e450ca1c22263ab3fd3957379dbcb1ded2 (diff) | |
download | bcm5719-llvm-dccbabfacf4b993e2cbe394c814c47b4dca17df8.tar.gz bcm5719-llvm-dccbabfacf4b993e2cbe394c814c47b4dca17df8.zip |
Destroy the diagnostic client first in ~DiagnosticEngine
Add a comment and a test to ~DiagnosticEngine about the ordering
requirements on the teardown of DiagnosticConsumer. This could also be
accomplished by rearranging the fields of ~DiagnosticEngine, but I felt
that this was a better, more explicit solution.
This fixes PR21911, an issue that occurred after the unique_ptr
migration in r222193.
llvm-svn: 224454
Diffstat (limited to 'clang/test/Frontend/verify-unknown-arg.c')
-rw-r--r-- | clang/test/Frontend/verify-unknown-arg.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/test/Frontend/verify-unknown-arg.c b/clang/test/Frontend/verify-unknown-arg.c new file mode 100644 index 00000000000..5767daedca3 --- /dev/null +++ b/clang/test/Frontend/verify-unknown-arg.c @@ -0,0 +1,6 @@ +// RUN: not %clang_cc1 -asdf -verify %s 2>&1 | FileCheck %s + +// expected-no-diagnostics + +// CHECK: error: 'error' diagnostics seen but not expected: +// CHECK-NEXT: (frontend): unknown argument: '-asdf' |