Projet_SETI_RISC-V/riscv-gnu-toolchain/gcc/gcc/testsuite/g++.dg/modules/concept-1_b.C
2023-03-06 14:48:14 +01:00

14 lines
241 B
C

// { 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} }