blob: 642c8f6fe8f20130cc00d5ea56082db62a79c413 [file] [log] [blame]
// RUN: clang -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 '('}}
}