[Reland][Runtimes] Merge 'compile_commands.json' files from runtimes build (#116303)
[llvm-project.git] / clang / test / CodeGenCXX / PR20038.cpp
blobb6d12f66031274caa2de41a60113a8cc651cfaaf
1 // RUN: %clang_cc1 -triple %itanium_abi_triple -debug-info-kind=limited -mllvm -no-discriminators -emit-llvm %s -o - | FileCheck %s
3 struct C {
4 ~C();
5 };
6 extern bool b;
7 // CHECK: call {{.*}}, !dbg [[DTOR_CALL1_LOC:![0-9]*]]
8 // CHECK: call {{.*}}, !dbg [[DTOR_CALL2_LOC:![0-9]*]]
9 // CHECK: [[FUN1:.*]] = distinct !DISubprogram(name: "fun1",{{.*}} DISPFlagDefinition
10 // CHECK: [[DTOR_CALL1_LOC]] = !DILocation(line: [[@LINE+1]], column: 15, scope: [[FUN1]])
11 void fun1() { b && (C(), 1); }
12 // CHECK: [[FUN2:.*]] = distinct !DISubprogram(name: "fun2",{{.*}} DISPFlagDefinition
13 // CHECK: [[DTOR_CALL2_LOC]] = !DILocation(line: [[@LINE+1]], column: 15, scope: [[FUN2]])
14 bool fun2() { return (C(), b) && 0; }