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
PR c++/85765 - SFINAE and non-type default template arg.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
defaulted11.C
blob
cd4e293f65e4834424bf66b53c470622ff611a31
1
// Core issue 901
2
// { dg-do compile { target c++11 } }
3
4
struct A
5
{
6
A(); ~A();
7
void operator delete (void *) = delete;
8
void operator delete[] (void *) = delete;
9
};
10
11
int main()
12
{
13
A* ap = new A;
14
ap = new A[2];
15
}