blob: 14acb91ffaa4189380e4991d849bd278799c9f0a [file] [log] [blame]
#include "../../gcc.dg/analyzer/analyzer-decls.h"
struct base
{
virtual ~base () {}
};
struct sub : public base
{
int m_field;
};
int
test_1 (base *p)
{
if (sub *q = dynamic_cast <sub*> (p))
{
__analyzer_dump_path (); // { dg-message "path" }
return q->m_field;
}
return 0;
}