blob: d838dbc51097cf98607861ba8ae9b04e3c0c6a4b [file] [log] [blame]
David Blaikie66e41972015-01-14 07:38:27 +00001// RUN: %clang_cc1 -triple %itanium_abi_triple -g -mllvm -no-discriminators -emit-llvm %s -o - | FileCheck %s
David Blaikie21cd7cf2014-06-25 17:57:34 +00002
3struct C {
4 ~C();
5};
6extern bool b;
David Blaikie1b5adb82014-07-10 20:42:59 +00007// CHECK: call {{.*}}, !dbg [[DTOR_CALL1_LOC:![0-9]*]]
8// CHECK: call {{.*}}, !dbg [[DTOR_CALL2_LOC:![0-9]*]]
9// CHECK: [[FUN1:.*]] = {{.*}}; [ DW_TAG_subprogram ] {{.*}} [def] [fun1]
10// CHECK: [[FUN2:.*]] = {{.*}}; [ DW_TAG_subprogram ] {{.*}} [def] [fun2]
David Blaikie66e41972015-01-14 07:38:27 +000011// CHECK: [[DTOR_CALL1_LOC]] = !{i32 [[@LINE+1]], i32 0, [[FUN1]], null}
David Blaikie1b5adb82014-07-10 20:42:59 +000012void fun1() { b && (C(), 1); }
David Blaikie66e41972015-01-14 07:38:27 +000013// CHECK: [[DTOR_CALL2_LOC]] = !{i32 [[@LINE+1]], i32 0, [[FUN2]], null}
David Blaikie1b5adb82014-07-10 20:42:59 +000014bool fun2() { return (C(), b) && 0; }