[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / Frontend / crash-diagnostic-renderer.cpp
blob8bf17a3170db8e2883d7f42e0a49b2a502442733
1 // RUN: %clang_cc1 -verify %s
3 // This case reproduces a problem that is shown here:
4 // https://bugs.llvm.org/show_bug.cgi?id=46540
5 // No assertion should happen during printing of diagnostic messages.
7 // expected-error@13{{'b' does not refer to a type name in pseudo-destructor expression; expected the name of type 'volatile long'}}
8 // expected-error@13{{expected ')'}}
9 // expected-note@13{{to match this '('}}
10 // expected-error@13{{reference to pseudo-destructor must be called; did you mean to call it with no arguments?}}
11 // expected-error@13{{cannot initialize a variable of type 'volatile long' with an rvalue of type 'void'}}
12 // expected-error@13{{expected ';' after top level declarator}}
13 volatile long a ( a .~b