/* From the MATE (https://galoisinc.github.io/MATE) test suite */ class Abstract { public: virtual int a() = 0; virtual int b() = 0; virtual const char *str() = 0; }; class Value : public Abstract { private: int _a, _b; char _str[10]; public: Value() : _a(1), _b(2){}; ~Value() = default; virtual int a() { return _a; }; virtual int b() { return _b; }; virtual char *str() { return _str; }; }; [[clang::optnone]] int main(int argc, char const *argv[]) { Value v; return v.a(); }