OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
* c-common.h (lang_post_pch_load): New variable.
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.dg
/
abi
/
cookie2.C
1
// { dg-options "-fabi-version=1" }
2
3
void *operator new[](__SIZE_TYPE__, void *);
4
5
struct A {
6
~A(){}
7
};
8
9
int main()
10
{
11
A * a = (A*) new char[20];
12
A * b = new(a) A[3];
13
// In the 3.2 ABI, a cookie was allocated in this case.
14
if (a == b)
15
return 1;
16
}