14 lines · cpp
1// RUN: %clang_cc1 -verify %s2 3// This case reproduces a problem that is shown here:4// https://bugs.llvm.org/show_bug.cgi?id=465405// 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}}13volatile long a ( a .~b14