From 4f34414da2a43ff5f706408527dad35e33e9ac77 Mon Sep 17 00:00:00 2001 From: Rudy Ges Date: Thu, 6 Feb 2025 16:17:05 +0100 Subject: [PATCH] [tests] add test --- tests/misc/js/projects/Issue11985/.gitignore | 1 + tests/misc/js/projects/Issue11985/Macro.hx | 3 +++ tests/misc/js/projects/Issue11985/Main.hx | 4 ++++ tests/misc/js/projects/Issue11985/compile.hxml | 4 ++++ 4 files changed, 12 insertions(+) create mode 100644 tests/misc/js/projects/Issue11985/.gitignore create mode 100644 tests/misc/js/projects/Issue11985/Macro.hx create mode 100644 tests/misc/js/projects/Issue11985/Main.hx create mode 100644 tests/misc/js/projects/Issue11985/compile.hxml diff --git a/tests/misc/js/projects/Issue11985/.gitignore b/tests/misc/js/projects/Issue11985/.gitignore new file mode 100644 index 00000000000..daa602947e4 --- /dev/null +++ b/tests/misc/js/projects/Issue11985/.gitignore @@ -0,0 +1 @@ +test.js diff --git a/tests/misc/js/projects/Issue11985/Macro.hx b/tests/misc/js/projects/Issue11985/Macro.hx new file mode 100644 index 00000000000..91912d131ab --- /dev/null +++ b/tests/misc/js/projects/Issue11985/Macro.hx @@ -0,0 +1,3 @@ +function init() { + haxe.macro.Compiler.define("js-unflatten", "1"); +} diff --git a/tests/misc/js/projects/Issue11985/Main.hx b/tests/misc/js/projects/Issue11985/Main.hx new file mode 100644 index 00000000000..13a8385a7be --- /dev/null +++ b/tests/misc/js/projects/Issue11985/Main.hx @@ -0,0 +1,4 @@ +function main() { + haxe.Log.trace("hello"); + var haxe = "haxe"; +} diff --git a/tests/misc/js/projects/Issue11985/compile.hxml b/tests/misc/js/projects/Issue11985/compile.hxml new file mode 100644 index 00000000000..7f508a0588c --- /dev/null +++ b/tests/misc/js/projects/Issue11985/compile.hxml @@ -0,0 +1,4 @@ +-main Main +--macro Macro.init() +-js test.js +-cmd "node test.js"