uox3/spidermonkey/analysis-tests/red-togreenptr-initializer-nested.cpp

19 lines
203 B
C++
Raw Permalink Normal View History

#include "jstypes.h"
void GreenFunc();
JS_REQUIRES_STACK void RedFunc();
typedef void (*GreenFuncPtr)();
struct S
{
int i;
GreenFuncPtr p;
};
S sa[] = {
{ 2, GreenFunc },
{ 1, RedFunc },
};