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
c++: local class memfn synth from uneval context [PR113063]
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp2a
/
spaceship-synth16.C
blob
37a183de0f5bb1eecba023baa821a7045c55cf16
1
// PR c++/113063
2
// { dg-do link { target c++20 } }
3
4
#include <compare>
5
6
int main() {
7
struct X {
8
auto operator<=>(const X&) const = default;
9
};
10
X x;
11
static_assert(noexcept(x <=> x));
12
x <=> x;
13
}