blob: 76b85e840659a9e97a16f355a7d3e02551aa7a20 [file] [log] [blame]
// RUN: clang-cc -fsyntax-only -verify %s
void f()
{
try {
;
} catch(int i) {
;
} catch(...) {
}
}
void g()
{
try; // expected-error {{expected '{'}}
try {}
catch; // expected-error {{expected '('}}
try {}
catch (...); // expected-error {{expected '{'}}
try {}
catch {} // expected-error {{expected '('}}
}