Skip to content

Commit 4f89fbc

Browse files
tobil4skMAJigsaw77
authored andcommitted
[tests] Add tests for c/cpp standard regressions
1 parent 4453b4e commit 4f89fbc

3 files changed

Lines changed: 29 additions & 1 deletion

File tree

.github/workflows/test.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,4 +233,8 @@ jobs:
233233
haxe: ${{ inputs.haxe }}
234234
- name: test c/cxx_standard attributes
235235
working-directory: test/cxx_standard
236-
run: haxelib run hxcpp Build.xml
236+
run: |
237+
for xml in *.xml; do
238+
haxelib run hxcpp $xml
239+
haxelib run hxcpp $xml clean
240+
done

test/cxx_standard/Build_legacy.xml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<xml>
2+
<set name="HXCPP_CPP17" value="1" />
3+
4+
<files id="test">
5+
<compilerflag value="/Zc:__cplusplus" if="isMsvc" />
6+
<file name="main.cpp" />
7+
</files>
8+
9+
<target id="default" tool="linker" toolid="exe" output="main">
10+
<files id="test"/>
11+
</target>
12+
</xml>
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<xml>
2+
<files id="test" cxx_standard="17">
3+
<compilerflag value="/Zc:__cplusplus" if="isMsvc" />
4+
<section>
5+
<file name="main.cpp" />
6+
</section>
7+
</files>
8+
9+
<target id="default" tool="linker" toolid="exe" output="main">
10+
<files id="test"/>
11+
</target>
12+
</xml>

0 commit comments

Comments
 (0)