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
Dead
[official-gcc.git]
/
gomp-20050608-branch
/
gcc
/
testsuite
/
g++.old-deja
/
g++.law
/
bad-error4.C
blob
74626f71349b841b55a1f88f5499dd857647400b
1
// { dg-do assemble }
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
}