Imported Upstream version 1.0.0
[platform/upstream/js.git] / js / src / analysis-tests / red-togreenptr-field.cpp
1 #include "jstypes.h"
2
3 typedef void (*GreenFuncPtr)();
4 typedef void (JS_REQUIRES_STACK *RedFuncPtr)();
5
6 struct Foo
7 {
8   int i;
9   GreenFuncPtr p;
10 };
11
12 void Test(Foo *foo, RedFuncPtr p)
13 {
14   foo->p = p;
15 }