Home | History | Annotate | Download | only in CodeGen
      1 // RUN: %clang -emit-llvm -S -g %s -o - | FileCheck %s
      2 
      3 // Radar 8396182
      4 // There are no lexical blocks, but we need two DILexicalBlockFiles to
      5 // correctly represent file info.
      6 
      7 int foo() {
      8   int i = 1;
      9 # 4 "m.c"
     10 # 1 "m.h" 1
     11   int j = 2;
     12 # 2 "m.h"
     13 # 5 "m.c" 2
     14   return i + j;
     15 }
     16 
     17 // CHECK: DW_TAG_lexical_block
     18 // CHECK: !"m.h"
     19 // CHECK: DW_TAG_lexical_block
     20 // CHECK: !"m.c"
     21 // CHECK-NOT: DW_TAG_lexical_block
     22