Skip to content

Commit 8f34682

Browse files
committed
test for static data member defined out-of-line as constexpr
1 parent 7913824 commit 8f34682

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
struct S
2+
{
3+
static const S s;
4+
};
5+
constexpr S S::s = S{};
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
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+
<struct name="S" id="pOYGF6pLJlICuiGO0Xj0daDb/to=">
6+
<file path="static-data-def-constexpr.cpp" line="1" class="def"/>
7+
<variable name="s" id="Sugb8cWjf0PRq2dN0pOEbkKY9C4=">
8+
<file path="static-data-def-constexpr.cpp" line="5" class="def"/>
9+
<file path="static-data-def-constexpr.cpp" line="3"/>
10+
<attr id="storage-class" name="static" value="2"/>
11+
<type name="S" id="pOYGF6pLJlICuiGO0Xj0daDb/to="/>
12+
</variable>
13+
</struct>
14+
</namespace>
15+
</mrdox>

0 commit comments

Comments
 (0)