Douglas Katzman | 3459ce2 | 2015-10-08 04:24:12 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -triple %itanium_abi_triple -debug-info-kind=limited -mllvm -no-discriminators -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]*]] |
Duncan P. N. Exon Smith | 8cd9d7a | 2015-08-26 22:50:48 +0000 | [diff] [blame] | 9 | // CHECK: [[FUN1:.*]] = distinct !DISubprogram(name: "fun1",{{.*}} isDefinition: true |
Duncan P. N. Exon Smith | 9dd4e4e | 2015-04-29 16:40:08 +0000 | [diff] [blame] | 10 | // CHECK: [[DTOR_CALL1_LOC]] = !DILocation(line: [[@LINE+1]], scope: [[FUN1]]) |
David Blaikie | 1b5adb8 | 2014-07-10 20:42:59 +0000 | [diff] [blame] | 11 | void fun1() { b && (C(), 1); } |
Adrian Prantl | e76bda5 | 2016-04-15 15:55:45 +0000 | [diff] [blame] | 12 | // CHECK: [[FUN2:.*]] = distinct !DISubprogram(name: "fun2",{{.*}} isDefinition: true |
Duncan P. N. Exon Smith | 9dd4e4e | 2015-04-29 16:40:08 +0000 | [diff] [blame] | 13 | // CHECK: [[DTOR_CALL2_LOC]] = !DILocation(line: [[@LINE+1]], scope: [[FUN2]]) |
David Blaikie | 1b5adb8 | 2014-07-10 20:42:59 +0000 | [diff] [blame] | 14 | bool fun2() { return (C(), b) && 0; } |