repo.or.cz
/
clang.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[Heikki Kultala] This patch contains the ABI changes for the TCE target.
[clang.git]
/
test
/
CodeGen
/
2010-02-16-DbgScopes.c
blob
b11f920156e42bad89791bb9dbaad8d328a93b5b
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
}