summaryrefslogtreecommitdiffstats
path: root/test/CodeGenObjCXX/arc-marker-funclet.mm
blob: 900c2788daedba15cd04d3b73b11a9ea8576e91c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// RUN: %clang_cc1 -triple i686-unknown-windows-msvc -fobjc-runtime=ios-6.0 -fobjc-arc \
// RUN:   -fexceptions -fcxx-exceptions -emit-llvm -o - %s | FileCheck %s

id f();
void g() {
  try {
    f();
  } catch (...) {
    f();
  }
}

// CHECK: call i8* @"?f@@YAPAUobjc_object@@XZ"() [ "funclet"(token %1) ]
// CHECK-NEXT: call void asm sideeffect "movl{{.*}}%ebp, %ebp{{.*}}", ""() [ "funclet"(token %1) ]

// The corresponding f() call was invoked from the entry basic block.
// CHECK: call void asm sideeffect "movl{{.*}}%ebp, %ebp{{.*}}", ""(){{$}}