repo.or.cz
/
gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Daily bump.
[gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
constexpr-ctor14.C
blob
17309952886ab54aa6e76b5cadad1dc63c5ba1aa
1
// { dg-do compile { target c++11 } }
2
3
struct A
4
{
5
void *p;
6
constexpr A(): p(this) {}
7
};
8
9
constexpr A a;
10
constexpr A b = A();
11
12
#define SA(X) static_assert ((X), #X)
13
SA(a.p == &a);
14
SA(b.p == &b);