summaryrefslogtreecommitdiff
path: root/js/src/analysis-tests/red-togreenptr.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/analysis-tests/red-togreenptr.cpp')
-rw-r--r--js/src/analysis-tests/red-togreenptr.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/js/src/analysis-tests/red-togreenptr.cpp b/js/src/analysis-tests/red-togreenptr.cpp
new file mode 100644
index 0000000..65dfd4d
--- /dev/null
+++ b/js/src/analysis-tests/red-togreenptr.cpp
@@ -0,0 +1,10 @@
+#include "jstypes.h"
+
+JS_REQUIRES_STACK void RedFunc();
+
+typedef void (*GreenFuncPtr)();
+
+GreenFuncPtr Test()
+{
+ return RedFunc;
+}