blob: 7497d5627c918d97d1d6a27e41730f3e2c80be80 [file] [log] [blame]
Richard Smith762bb9d2011-10-13 22:29:44 +00001// RUN: %clang_cc1 -cc1 -std=c++11 -Wuninitialized -verify %s
Richard Smithb403d6d2011-04-18 15:49:25 +00002
3void f() {
4 int a[] = { 1, 2, 3 };
5 unsigned int u = 0;
6 for (auto x : a)
7 ;
8}