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
Introduce class rtx_reader
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
ext
/
pr34829.C
blob
d588b5b2bbd75a06d00ee95386537b56e4a5961d
1
// Test for PR c++/34829
2
// Placement new should be ok for non-aggregate Java types.
3
4
// { dg-do compile }
5
// { dg-options "" }
6
7
extern "Java"
8
{
9
typedef __java_byte jbyte;
10
}
11
12
typedef __SIZE_TYPE__ size_t;
13
14
void *operator new (size_t, void *m)
15
{
16
return m;
17
}
18
19
jbyte *f(void *memory)
20
{
21
return new (memory) jbyte;
22
}