aboutsummaryrefslogtreecommitdiff
path: root/test/Analysis/PR9741.cpp
blob: 2807c44ab7bc69a2349fee40e59841eff6613bfc (plain) (blame)
1
2
3
4
5
6
7
8
9
// 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)
    ;
}