Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
conversion
/
packed2.C
blob: 7df74dc110b54eec2831c11608a55ff0f1e3510f [
file
] [
log
] [
blame
]
// PR c++/91925
// { dg-do compile { target c++11 } }
// { dg-options "-fpack-struct" }
struct
A
{};
int
foo
(
A
);
struct
B
{
A a
;
decltype
(
foo
(
a
))
p
;
};
template
<
typename
T
>
T bar
(
T
);
class
C
{
A a
;
decltype
(
bar
(
a
))
p
;
};