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
libbacktrace: use __has_attribute for fallthrough
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp
/
spaceship-1.C
blob
241b277c05bb0b8c6efdbde08390222318c95f70
1
// { dg-do compile { target c++17_down } }
2
// { dg-options "-Wno-pointer-arith" }
3
4
struct X {};
5
bool operator<= (X, X);
6
template<bool (X, X)> struct Y {};
7
Y<&operator<=> y;
8
bool foo (bool (*fn) (X, X), int n) { return n+&operator<=> fn; }