diff options
Diffstat (limited to 'test/AST/finally-msvc.m')
-rw-r--r-- | test/AST/finally-msvc.m | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/AST/finally-msvc.m b/test/AST/finally-msvc.m new file mode 100644 index 0000000000000..5db08a7f71001 --- /dev/null +++ b/test/AST/finally-msvc.m @@ -0,0 +1,14 @@ +// RUN: %clang_cc1 -triple i686--windows-msvc -fexceptions -fobjc-exceptions -ast-dump %s 2>&1 | FileCheck %s +// RUN: %clang_cc1 -triple x86_64--windows-msvc -fexceptions -fobjc-exceptions -ast-dump %s 2>&1 | FileCheck %s + +void f() { + @try { + } @finally { + } +} + +// CHECK: ObjCAtFinallyStmt +// CHECK-NEXT: CapturedStmt +// CHECK-NEXT: CapturedDecl +// CHECK-NEXT: CompoundStmt +// CHECK-NEXT: ImplicitParamDecl |