blob: 55066b28a1ff4bc71c8291b8f280ef30b02ac707 [file] [log] [blame]
Anastasis Grammenosdfe8fe52018-06-21 16:53:48 +00001// RUN: %clang_cc1 -debug-info-kind=limited -emit-llvm -o - %s | FileCheck %s
2// Check that clang emits Debug location in the phi instruction
3
4int func(int n) {
5 int a;
6 for(a = 10; a>0 && n++; a--);
7 return n;
8}
9
10// CHECK: land.end:
11// CHECK-NEXT: {{.*}} = phi i1 {{.*}} !dbg ![[DbgLoc:[0-9]+]]
12
13// CHECK: ![[DbgLoc]] = !DILocation(line: 0