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
[C++ PATCH] Deprecate -ffriend-injection
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
pr43211.c
blob
1549619ed16267c8859270e810135749d14ec87a
1
/* { dg-do compile } */
2
3
struct
T
;
4
5
struct
S
{
6
void
(*
bar
)(
struct
S
);
7
};
8
9
void
bar
(
struct
T t
) {}
/* { dg-error "" } */
10
11
void
foo
(
struct
S
*
s
)
12
{
13
s
->
bar
=
bar
;
14
}
15