forked from OSchip/llvm-project
26 lines
342 B
C++
26 lines
342 B
C++
// 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 '('}}
|
|
}
|