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-ptrmem6.C
blob
ed18ab1a63040565954eb5a46b980f74eec2e709
1
// PR c++/71896
2
// { dg-do compile { target c++11 } }
3
4
struct Foo {
5
int x;
6
};
7
8
constexpr bool compare(int Foo::*t) { return t == &Foo::x; }
9
10
constexpr bool b = compare(&Foo::x);
11
12
#define SA(X) static_assert ((X),#X)
13
SA(b);