blob: a49507a1aa5d37b28f013e859dcf526d2907892b [file] [log] [blame]
// RUN: %clang_analyze_cc1 -analyzer-checker=core,alpha.cplusplus.UninitializedObject -analyzer-config alpha.cplusplus.UninitializedObject:NotesAsWarnings=true -std=c++11 -verify %s
class NotesAsWarningsTest {
int a;
int b;
int dontGetFilteredByNonPedanticMode = 0;
public:
NotesAsWarningsTest() {} // expected-warning{{uninitialized field 'this->a'}}
// expected-warning@-1{{uninitialized field 'this->b'}}
};
void fNotesAsWarningsTest() {
NotesAsWarningsTest();
}