summaryrefslogtreecommitdiff
path: root/clang/test/CodeGen/2010-03-5-LexicalScope.c
blob: 0f63ff6914b2e7c2f3afeb41796cf2039fc2ebe2 (about) (plain)
1
2
3
4
5
6
7
8
9
10
// RUN: %clang_cc1 -emit-llvm -O0 -g %s -o - | grep DW_TAG_lexical_block | count 3
int foo(int i) {
	if (i) {
		int j = 2;
	}
	else {
		int j = 3;
	}
	return i;
}