1*0a6a1f1dSLionel Sambuc // RUN: %clang_cc1 -triple %itanium_abi_triple -g -mllvm -no-discriminators -emit-llvm %s -o - | FileCheck %s
2*0a6a1f1dSLionel Sambuc
3*0a6a1f1dSLionel Sambuc struct C {
4*0a6a1f1dSLionel Sambuc ~C();
5*0a6a1f1dSLionel Sambuc };
6*0a6a1f1dSLionel Sambuc extern bool b;
7*0a6a1f1dSLionel Sambuc // CHECK: call {{.*}}, !dbg [[DTOR_CALL1_LOC:![0-9]*]]
8*0a6a1f1dSLionel Sambuc // CHECK: call {{.*}}, !dbg [[DTOR_CALL2_LOC:![0-9]*]]
9*0a6a1f1dSLionel Sambuc // CHECK: [[FUN1:.*]] = {{.*}}; [ DW_TAG_subprogram ] {{.*}} [def] [fun1]
10*0a6a1f1dSLionel Sambuc // CHECK: [[FUN2:.*]] = {{.*}}; [ DW_TAG_subprogram ] {{.*}} [def] [fun2]
11*0a6a1f1dSLionel Sambuc // CHECK: [[DTOR_CALL1_LOC]] = !MDLocation(line: [[@LINE+1]], scope: [[FUN1]])
fun1()12*0a6a1f1dSLionel Sambuc void fun1() { b && (C(), 1); }
13*0a6a1f1dSLionel Sambuc // CHECK: [[DTOR_CALL2_LOC]] = !MDLocation(line: [[@LINE+1]], scope: [[FUN2]])
fun2()14*0a6a1f1dSLionel Sambuc bool fun2() { return (C(), b) && 0; }
15