2012-04-16 06:09:44 +08:00
|
|
|
// RUN: %clang_cc1 -Weverything -fsyntax-only %s -verify
|
2012-03-20 07:48:41 +08:00
|
|
|
|
|
|
|
// This previously crashed due to a bug in the CFG. Exercising all
|
|
|
|
// warnings helps check CFG construction.
|
|
|
|
class PR12271 {
|
|
|
|
public:
|
|
|
|
PR12271();
|
|
|
|
~PR12271();
|
|
|
|
};
|
|
|
|
|
2012-04-16 06:09:44 +08:00
|
|
|
void testPR12271() { // expected-warning {{no previous prototype for function 'testPR12271'}}
|
2016-10-27 21:30:51 +08:00
|
|
|
PR12271 a[1][1];
|
2012-04-16 06:09:44 +08:00
|
|
|
}
|