]> git.proxmox.com Git - rustc.git/blame - src/llvm/tools/clang/test/CodeGen/2010-02-16-DbgScopes.c
Imported Upstream version 0.6
[rustc.git] / src / llvm / tools / clang / test / CodeGen / 2010-02-16-DbgScopes.c
CommitLineData
223e47cc
LB
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
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}