blob: 68c2e3091547b9e841fba8d00e7bb5772b0cadd0 [file] [log] [blame]
// RUN: %clang_cc1 %s -fsyntax-only -Wmicrosoft -verify -fms-extensions
void f() {
int a;
__try a; // expected-error {{expected '{'}} expected-warning {{expression result unused}}
__try {
}
} // expected-error {{expected '__except' or '__finally' block}}
void g() {
int a;
__try {
} __except(1) a; // expected-error {{expected '{'}} expected-warning {{expression result unused}}
}
void h() {
int a;
__try {
} __finally a; // expected-error {{expected '{'}} expected-warning {{expression result unused}}
}