blob: a76a10017a1607da79db0c84c0c586df8ae36de0 [file] [log] [blame]
Stephen Hines0e2c34f2015-03-23 12:09:02 -07001// RUN: %clang_cc1 -triple %itanium_abi_triple -g -mllvm -no-discriminators -emit-llvm %s -o - | FileCheck %s
Stephen Hinesc568f1e2014-07-21 00:47:37 -07002
3struct C {
4 ~C();
5};
6extern bool b;
Stephen Hines176edba2014-12-01 14:53:08 -08007// CHECK: call {{.*}}, !dbg [[DTOR_CALL1_LOC:![0-9]*]]
8// CHECK: call {{.*}}, !dbg [[DTOR_CALL2_LOC:![0-9]*]]
Pirama Arumuga Nainar3ea9e332015-04-08 08:57:32 -07009// CHECK: [[FUN1:.*]] = !MDSubprogram(name: "fun1",{{.*}} isDefinition: true
10// CHECK: [[FUN2:.*]] = !MDSubprogram(name: "fun2",{{.*}} isDefinition: true
Stephen Hines0e2c34f2015-03-23 12:09:02 -070011// CHECK: [[DTOR_CALL1_LOC]] = !MDLocation(line: [[@LINE+1]], scope: [[FUN1]])
Stephen Hines176edba2014-12-01 14:53:08 -080012void fun1() { b && (C(), 1); }
Stephen Hines0e2c34f2015-03-23 12:09:02 -070013// CHECK: [[DTOR_CALL2_LOC]] = !MDLocation(line: [[@LINE+1]], scope: [[FUN2]])
Stephen Hines176edba2014-12-01 14:53:08 -080014bool fun2() { return (C(), b) && 0; }