repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
2018-11-07 Richard Biener <rguenther@suse.de>
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp1z
/
aligned-new5.C
blob
525129e4c4049f655acc47f64a5ac8f0bc564eca
1
// { dg-options -faligned-new }
2
// { dg-do run }
3
4
#include <new>
5
#include <stdint.h>
6
7
struct A { int i; };
8
9
int main()
10
{
11
A* ap = new (std::align_val_t(64)) A;
12
if (intptr_t(ap) % 64 != 0)
13
__builtin_abort();
14
}