Skip to content

Commit 1481de8

Browse files
committed
update tests
1 parent 1810e93 commit 1481de8

File tree

6 files changed

+143
-24
lines changed

6 files changed

+143
-24
lines changed
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
template<typename T>
2+
struct A
3+
{
4+
void f() { }
5+
6+
template<typename U>
7+
struct B
8+
{
9+
void g() { }
10+
};
11+
12+
template<typename U>
13+
struct C
14+
{
15+
void h() { }
16+
};
17+
};
18+
19+
template<>
20+
void A<int>::f() { }
21+
22+
template<>
23+
template<>
24+
void A<int>::B<long>::g() { }
25+
26+
template<>
27+
template<typename U>
28+
struct A<short>::C
29+
{
30+
void i() { }
31+
};
32+
33+
34+
template<>
35+
template<typename U>
36+
struct A<bool>::C<U*>
37+
{
38+
void j() { }
39+
};
40+
41+
template<>
42+
template<>
43+
void A<bool>::C<double*>::j() { }
Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<mrdox xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:noNamespaceSchemaLocation="https://github.com/cppalliance/mrdox/raw/develop/mrdox.rnc">
4+
<namespace name="">
5+
<template>
6+
<tparam name="T" class="type"/>
7+
<struct name="A" id="5tUSuMtQqtYE49jBjSYSWp0DJAM=">
8+
<file path="spec-mem-implicit-instantiation.cpp" line="2" class="def"/>
9+
<template>
10+
<tparam name="U" class="type"/>
11+
<struct name="B" id="dKDSVrZun8skBV/NUCmJyCUOvJA=">
12+
<file path="spec-mem-implicit-instantiation.cpp" line="7" class="def"/>
13+
<function name="g" id="P0HRKTdcNYA5qjhIXTqtJIxYItQ=">
14+
<file path="spec-mem-implicit-instantiation.cpp" line="9" class="def"/>
15+
</function>
16+
</struct>
17+
</template>
18+
<template>
19+
<tparam name="U" class="type"/>
20+
<struct name="C" id="UYi0dO2mWSf0nD8WRfX9JD1eJyw=">
21+
<file path="spec-mem-implicit-instantiation.cpp" line="13" class="def"/>
22+
<function name="h" id="5XAhWGI1AQuRh2DnECuhvkGU0qs=">
23+
<file path="spec-mem-implicit-instantiation.cpp" line="15" class="def"/>
24+
</function>
25+
</struct>
26+
</template>
27+
<function name="f" id="c4jAAYDw9qnOxUCpXquNT7fALUY=">
28+
<file path="spec-mem-implicit-instantiation.cpp" line="4" class="def"/>
29+
</function>
30+
</struct>
31+
</template>
32+
<specialization id="AKwlChAOi+0ttIAPsD7uitS+gk0=" primary="5tUSuMtQqtYE49jBjSYSWp0DJAM=">
33+
<targ value="int"/>
34+
<function name="f" id="5vQMmBbKdcjmr6fZ5KE/+hqkRD0=">
35+
<file path="spec-mem-implicit-instantiation.cpp" line="19" class="def"/>
36+
</function>
37+
<specialization id="kLfkJ6zwS7/fgRzTYaPfbg3WHg8=" primary="dKDSVrZun8skBV/NUCmJyCUOvJA=">
38+
<targ value="long"/>
39+
<function name="g" id="7fGykhsl+TDnhidf/wArzvaeUXY=">
40+
<file path="spec-mem-implicit-instantiation.cpp" line="22" class="def"/>
41+
</function>
42+
</specialization>
43+
</specialization>
44+
<specialization id="C6fFmGgpPJ7jgwKJA98mfx5cxts=" primary="5tUSuMtQqtYE49jBjSYSWp0DJAM=">
45+
<targ value="short"/>
46+
<template>
47+
<tparam name="U" class="type"/>
48+
<struct name="C" id="bJ8v5jNLvcM2EtaEdF2cpbTmU5s=">
49+
<file path="spec-mem-implicit-instantiation.cpp" line="26" class="def"/>
50+
</struct>
51+
</template>
52+
</specialization>
53+
<specialization id="/vjeowK9rbOfBZNuMjVMRn2iGMo=" primary="5tUSuMtQqtYE49jBjSYSWp0DJAM=">
54+
<targ value="bool"/>
55+
<template class="partial" id="UYi0dO2mWSf0nD8WRfX9JD1eJyw=">
56+
<tparam name="U" class="type"/>
57+
<targ value="U *"/>
58+
<struct name="C" id="xYK8qpEgWzczUMGnNUx+ozeBle0=">
59+
<file path="spec-mem-implicit-instantiation.cpp" line="34" class="def"/>
60+
</struct>
61+
</template>
62+
<specialization id="EyperGIiZ7cSv/PB2BApKjPRQVA=" primary="xYK8qpEgWzczUMGnNUx+ozeBle0=">
63+
<targ value="double *"/>
64+
<function name="j" id="4hePn1dLCqLal3xld/sSlBvpu6U=">
65+
<file path="spec-mem-implicit-instantiation.cpp" line="41" class="def"/>
66+
</function>
67+
</specialization>
68+
</specialization>
69+
</namespace>
70+
</mrdox>

test-files/old-tests/temp/ct_mc_expl_outside.xml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@
1212
<file path="ct_mc_expl_outside.cpp" line="4" class="def"/>
1313
</function>
1414
</struct>
15-
<struct name="B" id="xks7eBJx25CIVelbqBa2LCCEll4=">
16-
<file path="ct_mc_expl_outside.cpp" line="7" class="def"/>
17-
<function name="g" id="692fgnQlzTAWgxI/0d6qH/zXq2w=">
18-
<file path="ct_mc_expl_outside.cpp" line="8" class="def"/>
19-
</function>
20-
</struct>
2115
</struct>
2216
</template>
17+
<specialization id="AKwlChAOi+0ttIAPsD7uitS+gk0=" primary="5tUSuMtQqtYE49jBjSYSWp0DJAM=">
18+
<targ value="int"/>
19+
<struct name="B" id="xks7eBJx25CIVelbqBa2LCCEll4=">
20+
<file path="ct_mc_expl_outside.cpp" line="7" class="def"/>
21+
</struct>
22+
</specialization>
2323
</namespace>
2424
</mrdox>

test-files/old-tests/temp/ct_mct_expl_outside.xml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,16 @@
1515
</function>
1616
</struct>
1717
</template>
18-
<template class="explicit" id="dKDSVrZun8skBV/NUCmJyCUOvJA=">
19-
<targ value="int"/>
20-
<struct name="B" id="IMS2etMN5nj/r7pRC8mVNme6K+o=">
21-
<file path="ct_mct_expl_outside.cpp" line="8" class="def"/>
22-
<function name="g" id="wgUjzBOiB/QKB2Z0bKQ7J2DgRR0=">
23-
<file path="ct_mct_expl_outside.cpp" line="10" class="def"/>
24-
</function>
25-
</struct>
26-
</template>
2718
</struct>
2819
</template>
20+
<specialization id="AKwlChAOi+0ttIAPsD7uitS+gk0=" primary="5tUSuMtQqtYE49jBjSYSWp0DJAM=">
21+
<targ value="int"/>
22+
<template class="explicit" id="dKDSVrZun8skBV/NUCmJyCUOvJA=">
23+
<targ value="int"/>
24+
<struct name="B" id="IMS2etMN5nj/r7pRC8mVNme6K+o=">
25+
<file path="ct_mct_expl_outside.cpp" line="8" class="def"/>
26+
</struct>
27+
</template>
28+
</specialization>
2929
</namespace>
3030
</mrdox>

test-files/old-tests/temp/ct_mf_expl_outside.xml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,13 @@
99
<function name="f" id="c4jAAYDw9qnOxUCpXquNT7fALUY=">
1010
<file path="ct_mf_expl_outside.cpp" line="4" class="def"/>
1111
</function>
12-
<function name="f" id="5vQMmBbKdcjmr6fZ5KE/+hqkRD0=">
13-
<file path="ct_mf_expl_outside.cpp" line="7" class="def"/>
14-
</function>
1512
</struct>
1613
</template>
14+
<specialization id="AKwlChAOi+0ttIAPsD7uitS+gk0=" primary="5tUSuMtQqtYE49jBjSYSWp0DJAM=">
15+
<targ value="int"/>
16+
<function name="f" id="5vQMmBbKdcjmr6fZ5KE/+hqkRD0=">
17+
<file path="ct_mf_expl_outside.cpp" line="7" class="def"/>
18+
</function>
19+
</specialization>
1720
</namespace>
1821
</mrdox>

test-files/old-tests/temp/ct_mft_expl_outside.xml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,16 @@
1212
<file path="ct_mft_expl_outside.cpp" line="5" class="def"/>
1313
</function>
1414
</template>
15-
<template class="explicit" id="fycIFVnUjGsczEihLemEC7pcV4w=">
16-
<targ value="int"/>
17-
<function name="f" id="fjcm9F09lrCrLSgw6Swqw9KOBlM=">
18-
<file path="ct_mft_expl_outside.cpp" line="8" class="def"/>
19-
</function>
20-
</template>
2115
</struct>
2216
</template>
17+
<specialization id="AKwlChAOi+0ttIAPsD7uitS+gk0=" primary="5tUSuMtQqtYE49jBjSYSWp0DJAM=">
18+
<targ value="int"/>
19+
<template class="explicit" id="fycIFVnUjGsczEihLemEC7pcV4w=">
20+
<targ value="int"/>
21+
<function name="f" id="fjcm9F09lrCrLSgw6Swqw9KOBlM=">
22+
<file path="ct_mft_expl_outside.cpp" line="8" class="def"/>
23+
</function>
24+
</template>
25+
</specialization>
2326
</namespace>
2427
</mrdox>

0 commit comments

Comments
 (0)