summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/pr65295.C
blob: 2fa4b05a22eb3c5fd04db8140d29ce3b31f975da (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// { dg-do compile }
// { dg-options "-std=c++14" }

struct arr {
    constexpr arr() : elem() { }
    char elem[17];
};

constexpr 
arr f()
{
    arr result;
    return result;
}

constexpr arr a { f() };

int main()
{
}