Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp1z
/
aligned-new4.C
blob: cc63a1455898661c254d1b5d42fbe1aa8e2d7eba [
file
] [
log
] [
blame
]
// { dg-options "-std=c++14 -Waligned-new" }
struct
alignas
(
64
)
A
{
int
i
;
};
struct
alignas
(
64
)
B
{
int
i
;
void
*
operator
new
(
__SIZE_TYPE__
);
};
int
main
()
{
A
*
ap
=
new
A
;
// { dg-warning "-Waligned-new" }
B
*
bp
=
new
B
;
}