[lld][WebAssembly] Reinstate mistakenly disabled test. NFC
[llvm-project.git] / clang / test / Parser / ms-seh.c
blob68c2e3091547b9e841fba8d00e7bb5772b0cadd0
1 // RUN: %clang_cc1 %s -fsyntax-only -Wmicrosoft -verify -fms-extensions
3 void f() {
4 int a;
6 __try a; // expected-error {{expected '{'}} expected-warning {{expression result unused}}
8 __try {
10 } // expected-error {{expected '__except' or '__finally' block}}
12 void g() {
13 int a;
15 __try {
16 } __except(1) a; // expected-error {{expected '{'}} expected-warning {{expression result unused}}
19 void h() {
20 int a;
22 __try {
23 } __finally a; // expected-error {{expected '{'}} expected-warning {{expression result unused}}