1*67e74705SXin Li // RUN: %clang_cc1 -Weverything -fsyntax-only %s -verify 2*67e74705SXin Li 3*67e74705SXin Li // This previously crashed due to a bug in the CFG. Exercising all 4*67e74705SXin Li // warnings helps check CFG construction. 5*67e74705SXin Li class PR12271 { 6*67e74705SXin Li public: 7*67e74705SXin Li PR12271(); 8*67e74705SXin Li ~PR12271(); 9*67e74705SXin Li }; 10*67e74705SXin Li testPR12271()11*67e74705SXin Livoid testPR12271() { // expected-warning {{no previous prototype for function 'testPR12271'}} 12*67e74705SXin Li PR12271 a[1][1]; // expected-warning {{unused variable 'a'}} 13*67e74705SXin Li } 14