summaryrefslogtreecommitdiff
path: root/test/CodeGenCXX/PR20038.cpp
blob: 671b8bcd7baa3e218d054eb496552530ca9b9138 (plain)
1
2
3
4
5
6
7
8
9
10
11
// RUN: %clang_cc1 -g -emit-llvm %s -o - | FileCheck %s

struct C {
  ~C();
};
extern bool b;
// CHECK: call {{.*}}, !dbg [[DTOR_CALL_LOC:![0-9]*]]
// CHECK: [[FUN4:.*]] = {{.*}}; [ DW_TAG_subprogram ] {{.*}} [def] [fun4]
// CHECK: [[DTOR_CALL_LOC]] = metadata !{i32 [[@LINE+2]], i32 0, metadata [[FUN4_BLOCK:.*]], null}
// CHECK: [[FUN4_BLOCK]] = metadata !{{{[^,]*}}, {{[^,]*}}, metadata [[FUN4]],
void fun4() { b && (C(), 1); }