You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
532 B
25 lines
532 B
// 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}}
|
|
}
|