[ELF] Avoid make in elf::writeARMCmseImportLib
[llvm-project.git] / clang / test / Analysis / cxx-uninitialized-object-no-dereference.cpp
blobe0aafb98085f2ca36af3292e6ee79a9d89b6d850
1 // RUN: %clang_analyze_cc1 -analyzer-checker=core,optin.cplusplus.UninitializedObject \
2 // RUN: -std=c++11 -DPEDANTIC -verify %s
4 class UninitPointerTest {
5 int *ptr; // expected-note{{uninitialized pointer 'this->ptr'}}
6 int dontGetFilteredByNonPedanticMode = 0;
8 public:
9 UninitPointerTest() {} // expected-warning{{1 uninitialized field}}
12 void fUninitPointerTest() {
13 UninitPointerTest();
16 class UninitPointeeTest {
17 int *ptr; // no-note
18 int dontGetFilteredByNonPedanticMode = 0;
20 public:
21 UninitPointeeTest(int *ptr) : ptr(ptr) {} // no-warning
24 void fUninitPointeeTest() {
25 int a;
26 UninitPointeeTest t(&a);