projects
/
platform
/
upstream
/
js.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
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
}