[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / Analysis / base-init.cpp
blob1f59303789b35e0fe7f88d58e70d9bcd7d1b567d
1 // RUN: %clang_analyze_cc1 -analyzer-checker=core,debug.ExprInspection -analyzer-config c++-inlining=constructors -verify %s
3 void clang_analyzer_eval(bool);
5 class A {
6 int x;
7 public:
8 A();
9 int getx() const {
10 return x;
14 A::A() : x(0) {
17 class B : public A {
18 int y;
19 public:
20 B();
23 B::B() {
26 void f() {
27 B b;
28 clang_analyzer_eval(b.getx() == 0); // expected-warning{{TRUE}}