Sha256: d96460eedcf04b54454a0f19d1117b037b3c79fa0956e9d035639b891dca9df2

Contents?: true

Size: 216 Bytes

Versions: 5

Compression:

Stored size: 216 Bytes

Contents

#include "jstypes.h"

void GreenFunc();

typedef void (JS_REQUIRES_STACK *RedFuncPtr)();

RedFuncPtr Test()
{
  // assigning a green function to a red function pointer is ok
  RedFuncPtr p = GreenFunc;
  return p;
}

Version data entries

5 entries across 5 versions & 3 rubygems

Version Path
johnson19-2.0.0.pre3 vendor/tracemonkey/analysis-tests/green-toredptr.cpp
pre-johnson-2.0.0 vendor/tracemonkey/analysis-tests/green-toredptr.cpp
johnson-2.0.0.pre3 vendor/tracemonkey/analysis-tests/green-toredptr.cpp
johnson-2.0.0.pre2 vendor/tracemonkey/analysis-tests/green-toredptr.cpp
johnson-2.0.0.pre1 vendor/tracemonkey/analysis-tests/green-toredptr.cpp