repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Fix warnings occured during profiledboostrap on
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.jason
/
const.C
blob
7c497ee9951c91be70dcd5ca48a968d86313eff2
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
}