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
Fortran: Fix PR 47485.
[gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
constexpr-86953.C
blob
2eabe48d1da0209d5db6ac6052a51990907bb249
1
// PR c++/86953
2
// { dg-do run { target c++11 } }
3
// { dg-options "-O2" }
4
5
struct B {
6
double x;
7
bool y, z;
8
constexpr bool operator== (const B& o) const noexcept
9
{
10
return x == o.x && y == o.y && z == o.z;
11
}
12
constexpr bool operator!= (const B& o) const noexcept { return !(*this == o); }
13
};
14
15
int
16
main ()
17
{
18
bool b = B{} == B{};
19
}