llvm-for-llvmta/tools/clang/test/Analysis/virtualcall.h

10 lines
200 B
C
Raw Normal View History

2022-04-25 13:02:35 +02:00
namespace header {
class Z {
public:
Z() {
foo(); // impure-warning {{Call to virtual method 'Z::foo' during construction bypasses virtual dispatch}}
}
virtual int foo();
};
}