1 | // RUN: %clang_cc1 -std=c++11 -Wuninitialized -verify %s |
---|---|
2 | // expected-no-diagnostics |
3 | |
4 | void f() { |
5 | int a[] = { 1, 2, 3 }; |
6 | unsigned int u = 0; |
7 | for (auto x : a) |
8 | ; |
9 | } |
10 |
1 | // RUN: %clang_cc1 -std=c++11 -Wuninitialized -verify %s |
---|---|
2 | // expected-no-diagnostics |
3 | |
4 | void f() { |
5 | int a[] = { 1, 2, 3 }; |
6 | unsigned int u = 0; |
7 | for (auto x : a) |
8 | ; |
9 | } |
10 |