xref: /llvm-project/clang/test/Analysis/virtualcall.h (revision d3971fe97b64785c079d64bf4c8c3e2b5e1f85a1)
1 namespace header {
2   class Z {
3   public:
Z()4     Z() {
5       foo(); // impure-warning {{Call to virtual method 'Z::foo' during construction bypasses virtual dispatch}}
6     }
7     virtual int foo();
8   };
9 }
10