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++/86728 - C variadic generic lambda.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
constexpr-static12.C
blob
4faa8cfd108c89ade9cef39dac7f99cca673830c
1
// { dg-do compile { target c++11 } }
2
// { dg-final { scan-assembler-not "_ZNSt10unique_ptrC1Ei" } }
3
4
namespace std {
5
struct unique_ptr {
6
constexpr unique_ptr(int) : p() { }
7
~unique_ptr() { }
8
void* p;
9
};
10
}
11
12
void f()
13
{
14
static std::unique_ptr p(1);
15
}
16
17
int main()
18
{
19
f();
20
}