Sign in
gnu
/
gcc
/
93ac832f1846e4867aa6537f76f510fab8e3e87d
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp2a
/
concepts-uneval4.C
blob: 1be27d1ab284a39cafbd1caa7e10292875215848 [
file
] [
log
] [
blame
]
// PR c++/101725
// { dg-do compile { target c++20 } }
template
<
class
T
,
bool
V
=
requires
(
T t
)
{
x
(
t
);
}>
void
f
();
struct
A
{
int
m
;
void
f
(
int
a
,
int
b
=
requires
(
int
t
)
{
a
+
m
+
t
;
});
};
void
g
();
static_assert
(
noexcept
(
requires
{
g
();
}));