Sign in
gnu
/
gcc
/
refs/tags/basepoints/gcc-13
/
.
/
gcc
/
testsuite
/
g++.dg
/
modules
/
concept-1_b.C
blob: d6542e6dc736ae21ff8739634fa488eaa716d6d2 [
file
] [
log
] [
blame
]
// { dg-additional-options "-fmodules-ts -fconcepts" }
import
foo
;
struct
X
{};
void
foo
(
int
i
,
X
&
x
)
{
f1
(
i
);
// ok
f1
(
x
);
// { dg-error "no match" }
}
// { dg-regexp {[^\n]*concept-1_a.C:7:[0-9]*: error: invalid cast[^\n]*\n} }