1*f4a2713aSLionel Sambuc // RUN: %clang_cc1 -Wall -fsyntax-only %s -std=c++11 -verify 2*f4a2713aSLionel Sambuc 3*f4a2713aSLionel Sambuc // The rdar11671507_vector<int *>[]> would previously crash CFG construction 4*f4a2713aSLionel Sambuc // because of the temporary array of vectors. 5*f4a2713aSLionel Sambuc template <typename T> 6*f4a2713aSLionel Sambuc class rdar11671507_vector { 7*f4a2713aSLionel Sambuc public: 8*f4a2713aSLionel Sambuc rdar11671507_vector(); 9*f4a2713aSLionel Sambuc ~rdar11671507_vector(); 10*f4a2713aSLionel Sambuc T *Base; 11*f4a2713aSLionel Sambuc T *End; 12*f4a2713aSLionel Sambuc }; 13*f4a2713aSLionel Sambuc rdar11671507(rdar11671507_vector<int * > v,rdar11671507_vector<int * > w)14*f4a2713aSLionel Sambucvoid rdar11671507(rdar11671507_vector<int*> v, rdar11671507_vector<int*> w) { 15*f4a2713aSLionel Sambuc for (auto &vec : (rdar11671507_vector<int *>[]){ v, w }) {} // expected-warning {{unused}} 16*f4a2713aSLionel Sambuc } 17