llvm-for-llvmta/tools/clang/test/Analysis/PR9741.cpp

10 lines
170 B
C++
Raw Normal View History

2022-04-25 13:02:35 +02:00
// RUN: %clang_cc1 -std=c++11 -Wuninitialized -verify %s
// expected-no-diagnostics
void f() {
int a[] = { 1, 2, 3 };
unsigned int u = 0;
for (auto x : a)
;
}