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
FSF GCC merge 02/23/03
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.law
/
bad-error4.C
blob
09461c8db7cb3928d0304520982b2305ddc1c0da
1
// Build don't link:
2
// GROUPS passed bad-errors
3
#include <stddef.h>
4
5
void * operator new(size_t, int *);
6
void * operator new(size_t, void *);
7
8
int *x = 0;
9
int foo(){
10
new (x) int *;
11
new (&x) int *;
12
new (x) int *; // This is identical to line 8 !!!
13
return 1;
14
}