1 // RUN: %clang_cc1 -fsyntax-only -verify %s -std=c++11 -Wunused
2 
3 // PR9968: We used to warn that __range is unused in a dependent for-range.
4 
5 template <typename T>
6   struct Vector {
7     void doIt() {
8       int a; // expected-warning {{unused variable 'a'}}
9 
10       for (auto& e : elements) // expected-warning {{unused variable 'e'}}
11         ;
12     }
13 
14     T elements[10];
15   };
16 
17 
18 int main(int, char**) {
19   Vector<int>    vector;
20   vector.doIt(); // expected-note {{here}}
21 }
22