Revert "[llvm] Improve llvm.objectsize computation by computing GEP, alloca and mallo...
[llvm-project.git] / clang / test / CodeGen / debug-info-file-change.c
blob94e3c9d7e3c0f7cd2937a61c1d8b91d7b0080975
1 // RUN: %clang -emit-llvm -S -g %s -o - | FileCheck %s
3 // There are no lexical blocks, but we need two DILexicalBlockFiles to
4 // correctly represent file info.
6 int foo(void) {
7 int i = 1;
8 # 4 "m.c"
9 # 1 "m.h" 1
10 int j = 2;
11 # 2 "m.h"
12 # 5 "m.c" 2
13 return i + j;
16 // CHECK-NOT: !DILexicalBlock
17 // CHECK: !DILexicalBlockFile({{.*}}file: ![[MH:[0-9]+]]
18 // CHECK: !DIFile(filename: "m.h"
19 // CHECK: !DILexicalBlockFile({{.*}}file: ![[MC:[0-9]+]]
20 // CHECK: !DIFile(filename: "m.c"
21 // CHECK-NOT: !DILexicalBlock