summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGenCXX/PR20038.cpp
blob: 8b3ffc6f53a49e02cb9077dfd85c6aa65253db40 (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 void @_ZN1CD1Ev({{.*}}), !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); }
OpenPOWER on IntegriCloud