repo.or.cz
/
mozilla-central.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Bug 617935: Check string lengths using StringBuffer. (r=lw)
[mozilla-central.git]
/
js
/
src
/
analysis-tests
/
green-toredptr.cpp
blob
78df373208bb1e831a414098cc621fa5606136a1
1
#include
"jstypes.h"
2
3
void
GreenFunc
();
4
5
typedef
void
(
JS_REQUIRES_STACK
*
RedFuncPtr
)();
6
7
RedFuncPtr
Test
()
8
{
9
// assigning a green function to a red function pointer is ok
10
RedFuncPtr p
=
GreenFunc
;
11
return
p
;
12
}