blob: b11f920156e42bad89791bb9dbaad8d328a93b5b [file] [log] [blame]
Devang Pateld19429f2010-02-16 21:41:20 +00001// RUN: %clang_cc1 -emit-llvm -g < %s | grep lexical | count 5
2// Test to check number of lexical scope identified in debug info.
3
4extern int bar();
5extern void foobar();
6void 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}