Balázs Kéri | 085dcc8 | 2021-02-16 15:52:44 +0100 | [diff] [blame] | 1 | // RUN: %clang_cc1 -verify %s |
| 2 | |
| 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. |
| 6 | |
| 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 |