[NFC][RISCV] Remove CFIIndex argument from allocateStack (#117871)
[llvm-project.git] / clang / test / Parser / ms-seh.c
blob90a6c62525316cfb43acb42b9c642bc5af275dc9
1 // RUN: %clang_cc1 %s -fsyntax-only -Wmicrosoft -verify -fms-extensions
3 void f(void) {
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(void) {
13 int a;
15 __try {
16 } __except(1) a; // expected-error {{expected '{'}} expected-warning {{expression result unused}}
19 void h(void) {
20 int a;
22 __try {
23 } __finally a; // expected-error {{expected '{'}} expected-warning {{expression result unused}}