brintos

brintos / llvm-project-archived public Read only

0
0
Text · 454 B · a6f2278 Raw
15 lines · cpp
1// RUN: %clang_cc1 -Weverything -fsyntax-only %s -verify2 3// This previously crashed due to a bug in the CFG.  Exercising all4// warnings helps check CFG construction.5class PR12271 {6public:7  PR12271();8  ~PR12271();9};10 11void testPR12271() { // expected-warning {{no previous prototype for function 'testPR12271'}}12// expected-note@-1{{declare 'static' if the function is not intended to be used outside of this translation unit}}13  PR12271 a[1][1];14}15