Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
addressof3.C
blob: fa517908ae3ce9f1deec339ed1542384fb57080a [
file
] [
log
] [
blame
]
// { dg-do compile }
struct
S
{
int
foo
();
int
s
;
};
int
a
[
10
];
int
b
;
S c
;
int
d
=
__builtin_addressof
(
a
)[
0
][
0
];
int
e
=
__builtin_addressof
(
b
)[
0
];
int
f
=
__builtin_addressof
(
c
)->
foo
();