summaryrefslogtreecommitdiff
path: root/js/src/analysis-tests/red-togreenptr-initializer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/analysis-tests/red-togreenptr-initializer.cpp')
-rw-r--r--js/src/analysis-tests/red-togreenptr-initializer.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/js/src/analysis-tests/red-togreenptr-initializer.cpp b/js/src/analysis-tests/red-togreenptr-initializer.cpp
new file mode 100644
index 0000000..063bb14
--- /dev/null
+++ b/js/src/analysis-tests/red-togreenptr-initializer.cpp
@@ -0,0 +1,7 @@
+#include "jstypes.h"
+
+JS_REQUIRES_STACK void RedFunc();
+
+typedef void (*GreenFuncPtr)();
+
+GreenFuncPtr funcp = RedFunc;