Devang Patel | d19429f | 2010-02-16 21:41:20 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -emit-llvm -g < %s | grep lexical | count 5 |
2 | // Test to check number of lexical scope identified in debug info. | ||||
3 | |||||
4 | extern int bar(); | ||||
5 | extern void foobar(); | ||||
6 | void foo(int s) { | ||||
7 | unsigned loc = 0; | ||||
8 | if (s) { | ||||
9 | if (bar()) { | ||||
10 | foobar(); | ||||
11 | } | ||||
12 | } else { | ||||
13 | loc = 1; | ||||
14 | if (bar()) { | ||||
15 | loc = 2; | ||||
16 | } | ||||
17 | } | ||||
18 | } |