summaryrefslogtreecommitdiffstats
path: root/clang/test/AST/finally-msvc.m
blob: 5db08a7f71001d66fa7bd04686a9eefe25fb9763 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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
OpenPOWER on IntegriCloud