minix/external/bsd/llvm/dist/clang/test/Analysis/PR9741.cpp

10 lines
175 B
C++
Raw Normal View History

// RUN: %clang_cc1 -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)
;
}