David Blaikie | f353d3e | 2015-01-09 23:00:28 +0000 | [diff] [blame^] | 1 | // RUN: %clang_cc1 -triple %itanium_abi_triple -g -emit-llvm %s -o - | FileCheck %s |
David Blaikie | 21cd7cf | 2014-06-25 17:57:34 +0000 | [diff] [blame] | 2 | |
| 3 | struct C { |
| 4 | ~C(); |
| 5 | }; |
| 6 | extern bool b; |
David Blaikie | 1b5adb8 | 2014-07-10 20:42:59 +0000 | [diff] [blame] | 7 | // 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 Blaikie | f353d3e | 2015-01-09 23:00:28 +0000 | [diff] [blame^] | 11 | // CHECK: [[DTOR_CALL1_LOC]] = !{i32 [[@LINE+2]], i32 0, [[FUN1_BLOCK:.*]], null} |
| 12 | // CHECK: [[FUN1_BLOCK]] = !{!"0xb{{[^,]*}}", {{[^,]*}}, [[FUN1]]} |
David Blaikie | 1b5adb8 | 2014-07-10 20:42:59 +0000 | [diff] [blame] | 13 | void fun1() { b && (C(), 1); } |
David Blaikie | f353d3e | 2015-01-09 23:00:28 +0000 | [diff] [blame^] | 14 | // CHECK: [[DTOR_CALL2_LOC]] = !{i32 [[@LINE+2]], i32 0, [[FUN2_BLOCK1:.*]], null} |
| 15 | // CHECK: [[FUN2_BLOCK1]] = !{!"0xb{{[^,]*}}", {{[^,]*}}, [[FUN2]]} |
David Blaikie | 1b5adb8 | 2014-07-10 20:42:59 +0000 | [diff] [blame] | 16 | bool fun2() { return (C(), b) && 0; } |