Bladeren bron

[tests] add test for 11293 (still missing native compilation step)

Rudy Ges 2 jaren geleden
bovenliggende
commit
0920ed7009
2 gewijzigde bestanden met toevoegingen van 16 en 0 verwijderingen
  1. 14 0
      tests/misc/hl/projects/Issue11293/Main.hx
  2. 2 0
      tests/misc/hl/projects/Issue11293/compile.hxml

+ 14 - 0
tests/misc/hl/projects/Issue11293/Main.hx

@@ -0,0 +1,14 @@
+class Main {
+	static function main() {
+		var a = new TShaderConstant(true);
+		trace(a.bool);
+	}
+}
+
+class TShaderConstant {
+	public var bool: Bool;
+
+	public function new(boolValue: Bool) {
+		this.bool = boolValue;
+	}
+}

+ 2 - 0
tests/misc/hl/projects/Issue11293/compile.hxml

@@ -0,0 +1,2 @@
+--main Main
+--hl out/main.c