mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-03 06:10:23 +00:00
dccbabfacf
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
7 lines
207 B
C
7 lines
207 B
C
// 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'
|