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
c++: Don't crash upon invalid placement new operator [PR117101]
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.c-torture
/
execute
/
20040411-1.c
blob
fbc7f7b4de1c6e81a281771b23db4a41958d1b08
1
void
abort
(
void
);
2
3
int
4
sub1
(
int
i
,
int
j
)
5
{
6
typedef
int
c
[
i
+
2
];
7
int
x
[
10
],
y
[
10
];
8
9
if
(
j
==
2
)
10
{
11
__builtin_memcpy
(
x
,
y
,
10
*
sizeof
(
int
));
12
return sizeof
(
c
);
13
}
14
else
15
return sizeof
(
c
) *
3
;
16
}
17
18
int
19
main
()
20
{
21
if
(
sub1
(
20
,
3
) !=
66
*
sizeof
(
int
))
22
abort
();
23
24
return
0
;
25
}