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
PR tree-optimization/86415 - strlen() not folded for substrings within constant arrays
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp1z
/
aligned-new4.C
blob
cc63a1455898661c254d1b5d42fbe1aa8e2d7eba
1
// { dg-options "-std=c++14 -Waligned-new" }
2
3
struct alignas(64) A { int i; };
4
struct alignas(64) B {
5
int i;
6
void *operator new(__SIZE_TYPE__);
7
};
8
9
int main()
10
{
11
A* ap = new A; // { dg-warning "-Waligned-new" }
12
B* bp = new B;
13
}