Here's a sample file to test the fix.
However, I'm not sure how and if it should be inserted into the CIL test
suite.
--
Pavel Shved
ISPRAS
(Institute for System Programming
of Russian Academy of Sciences)
Operating Systems section
email: sh...@ispras.ru
void good()
{}
void bad()
{}
struct Y{
void (*z)();
};
struct X{
struct Y *y;
void (*a)();
};
void (*x)() = &bad;
int main()
{
struct X *x,xx;
xx.a = &bad;
// should not be converted
good();
// should not be converted in --no-convert-direct-calls mode only
bad();
// should be converted
x->y->z();
// should be converted
xx.a();
}
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
_______________________________________________
CIL-users mailing list
CIL-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cil-users