Devang Patel | 0554e0e | 2010-08-25 00:28:56 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -g -emit-llvm < %s | FileCheck %s |
2 | // Two variables with same name in separate scope. | ||||
3 | // Radar 8330217. | ||||
4 | int main() { | ||||
5 | int j = 0; | ||||
6 | int k = 0; | ||||
7 | // CHECK: DW_TAG_auto_variable | ||||
8 | // CHECK-NEXT: DW_TAG_lexical_block | ||||
9 | for (int i = 0; i < 10; i++) | ||||
10 | j++; | ||||
11 | for (int i = 0; i < 10; i++) | ||||
12 | k++; | ||||
13 | return 0; | ||||
14 | } |