uox3/spidermonkey/analysis-tests/red-togreenptr-field.cpp

15 lines
199 B
C++

#include "jstypes.h"
typedef void (*GreenFuncPtr)();
typedef void (JS_REQUIRES_STACK *RedFuncPtr)();
struct Foo
{
int i;
GreenFuncPtr p;
};
void Test(Foo *foo, RedFuncPtr p)
{
foo->p = p;
}