repo.or.cz
/
gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Fortran: Fix PR 47485.
[gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
torture
/
pr38747.C
blob
0f18a2f225f481ee00464512389923680977f65a
1
/* { dg-do run } */
2
3
extern "C" void abort (void);
4
inline void *operator new (__SIZE_TYPE__, void *__p) throw () { return __p; }
5
6
int __attribute__((noinline))
7
foo(void)
8
{
9
float f = 0;
10
int *i = new (&f) int (1);
11
return *(int *)&f;
12
}
13
14
int main()
15
{
16
if (foo() != 1)
17
abort ();
18
return 0;
19
}