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
* auto-profile.c (afdo_annotate_cfg): Use update_max_bb_count.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.other
/
init16.C
blob
de4c0ad9717fa49a807b013878193ff9d0995837
1
// { dg-do run }
2
// Origin: Jakub Jelinek <jakub@redhat.com>
3
4
struct bar {
5
char c;
6
bar (const char *);
7
bar (const bar &);
8
};
9
10
struct foo {
11
bar x;
12
};
13
14
extern const struct foo y = { "foo" };
15
16
bar::bar (const bar &ref)
17
{
18
c = ref.c;
19
}
20
21
bar::bar (const char *p)
22
{
23
c = p[2];
24
}
25
26
int main ()
27
{
28
return y.x.c != 'o';
29
}