Skip to content

Commit 45d69f7

Browse files
committed
fix: hack to make test pass regardless of line endings
1 parent 8a376f2 commit 45d69f7

File tree

2 files changed

+7
-16
lines changed

2 files changed

+7
-16
lines changed

test-files/old-tests/local-class.cpp

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1 @@
1-
auto f()
2-
{
3-
struct A
4-
{
5-
void g();
6-
} a;
7-
return a;
8-
}
9-
10-
struct B : decltype(f()) { };
1+
auto f() { struct A { void g(); } a; return a; } struct B : decltype(f()) { };

test-files/old-tests/local-class.xml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,20 @@
22
<mrdox xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
33
xsi:noNamespaceSchemaLocation="https://github.com/cppalliance/mrdox/raw/develop/mrdox.rnc">
44
<namespace>
5-
<struct name="A" id="iyPnRqvK5CeWtYJ+M257FJexgOs=">
6-
<file path="local-class.cpp" line="3" class="def"/>
7-
<function name="g" id="40OVwcIE9X1XM0YEYllS8H21wzk=">
8-
<file path="local-class.cpp" line="5"/>
5+
<struct name="A" id="OhDTqBe4/sw3kfEe1/rfVoLg//I=">
6+
<file path="local-class.cpp" line="1" class="def"/>
7+
<function name="g" id="3q6bOh6HrO+T0TeZ36BHKWeZRv4=">
8+
<file path="local-class.cpp" line="1"/>
99
</function>
1010
</struct>
1111
<function name="f" id="s6nsa+zVhpzzrN+yUVPP5rvdXqs=">
1212
<file path="local-class.cpp" line="1" class="def"/>
1313
<return>
14-
<type class="tag" id="iyPnRqvK5CeWtYJ+M257FJexgOs=" name="A"/>
14+
<type class="tag" id="OhDTqBe4/sw3kfEe1/rfVoLg//I=" name="A"/>
1515
</return>
1616
</function>
1717
<struct name="B" id="3JsK1DO0O+wZhv+0meptQrbs3fY=">
18-
<file path="local-class.cpp" line="10" class="def"/>
18+
<file path="local-class.cpp" line="1" class="def"/>
1919
<base>
2020
<type name="decltype(f())"/>
2121
</base>

0 commit comments

Comments
 (0)