Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp1z
/
aligned-new5.C
blob: 525129e4c4049f655acc47f64a5ac8f0bc564eca [
file
] [
log
] [
blame
]
// { dg-options -faligned-new }
// { dg-do run }
#include
<new>
#include
<stdint.h>
struct
A
{
int
i
;
};
int
main
()
{
A
*
ap
=
new
(
std
::
align_val_t
(
64
))
A
;
if
(
intptr_t
(
ap
)
%
64
!=
0
)
__builtin_abort
();
}