Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
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
();