blob: de3e3597548e94af8fd6c93f447a5d41c2396ea3 [file] [log] [blame]
Stephen Hines0e2c34f2015-03-23 12:09:02 -07001// RUN: %clang_cc1 -triple x86_64-apple-macosx -emit-llvm -g -stdlib=libc++ -fblocks -fexceptions -x objective-c++ -o - %s | FileCheck %s
2
3// Verify that all invoke instructions have a debug location.
4// Literally: There are no unwind lines that don't end with ", (!dbg 123)".
5// CHECK-NOT: {{to label %.* unwind label [^,]+$}}
6
7void block(void (^)(void));
8extern void foo();
9struct A {
10 ~A(void) { foo(); }
11 void bar() const {}
12};
13void baz(void const *const) {}
14struct B : A {};
15void test() {
16 A a;
17 B b;
18 block(^(void) {
19 baz(&b);
20 block(^() {
21 a.bar();
22 });
23 });
24}