mirror of
https://github.com/Gericom/teak-llvm.git
synced 2025-06-25 06:18:56 -04:00

similarly to scalar variables. This commit makes the -Wunused-variable warning behaviour more consistent: Now clang won't warn for array variables where it doesn't warn for scalar variables. rdar://24158862 Differential Revision: https://reviews.llvm.org/D25937 llvm-svn: 285289
14 lines
338 B
C++
14 lines
338 B
C++
// RUN: %clang_cc1 -Weverything -fsyntax-only %s -verify
|
|
|
|
// This previously crashed due to a bug in the CFG. Exercising all
|
|
// warnings helps check CFG construction.
|
|
class PR12271 {
|
|
public:
|
|
PR12271();
|
|
~PR12271();
|
|
};
|
|
|
|
void testPR12271() { // expected-warning {{no previous prototype for function 'testPR12271'}}
|
|
PR12271 a[1][1];
|
|
}
|