☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.old-deja
/
g++.jason
/
const.C
☽
☼
gcc/testsuite/g++.old-deja/g++.jason/const.C
code
plain
raw
1
// { dg-do run }
2
// Bug: a ends up in the text segment, so trying to initialize it causes
3
// a seg fault.
4
5
struct A {
6
int i;
7
A(): i(0) {}
8
A(int j): i(j) {}
9
};
10
11
const A a;
12
const A b(1);
13
14
int main ()
15
{
16
return 0;
17
}