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
/
nsdmi-list2.C
blob
d3669865c414d5acbdb7fb101549c15d94e50c29
1
// PR c++/50930
2
// { dg-do compile { target c++11 } }
3
4
struct nmc {
5
nmc() = default;
6
nmc(nmc&&) = delete; // line 3
7
};
8
9
struct A { // line 6
10
nmc n{};
11
nmc n2 = {};
12
} a; // line 8
13
14
// ------
15
16
struct lock_t {
17
int lock[4];
18
};
19
20
struct pthread_mutex_t {
21
volatile lock_t __spinlock;
22
};
23
24
struct mutex {
25
pthread_mutex_t m = { };
26
mutex() = default;
27
};
28
29
int main()
30
{
31
mutex mx;
32
}