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
Add qdf24xx base tuning support.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
defaulted31.C
blob
947364440d125f4e1e68f24479fc50b28c1e997d
1
// PR c++/39164
2
// { dg-do compile { target c++11 } }
3
4
struct A
5
{
6
A() { } // { dg-message "defined" }
7
~A() = default; // { dg-message "defaulted" }
8
};
9
10
A::A() = default; // { dg-error "redefinition" }
11
A::~A() noexcept (true) { } // { dg-error "defaulted" }
12
13
int main()
14
{
15
A a;
16
}