Revert "[llvm] Improve llvm.objectsize computation by computing GEP, alloca and mallo...
[llvm-project.git] / clang / test / CodeGen / debug-info-line2.c
blob085fd97bfabbd97f9c6b46274198cbfc85b8924b
1 // RUN: %clang_cc1 -triple x86_64-darwin-apple -debug-info-kind=limited -emit-llvm -o - %s | FileCheck %s
3 int bar(void);
4 int foo(int i) {
5 int j = 0;
6 if (i) {
7 j = bar();
8 }
9 else
11 // CHECK: add nsw
12 // CHECK-NEXT: store i32 %{{[a-zA-Z0-9]+}}
13 // CHECK-NOT: br label %{{[a-zA-Z0-9\.]+}}, !dbg
14 j = bar() + 2;
16 return j;