blob: b255d90b34c8aedd003315c2fd1e0d44d977c468 [file] [log] [blame]
Eric Christopher28e06352011-10-12 18:39:35 +00001// RUN: %clang -emit-llvm -S -g %s -o %t
2// RUN: grep DW_TAG_lexical_block %t | count 3
Devang Patel424a5c62010-09-15 20:50:40 +00003
4// Radar 8396182
Eric Christopher28e06352011-10-12 18:39:35 +00005// There are three lexical blocks in this test case.
Devang Patel424a5c62010-09-15 20:50:40 +00006
7int 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}