| 1 |
// { dg-additional-options "-fmodules-ts -fconcepts" } |
| 2 |
|
| 3 |
import foo; |
| 4 |
|
| 5 |
struct X {}; |
| 6 |
|
| 7 |
void foo (int i, X &x) |
| 8 |
{ |
| 9 |
f1 (i); // ok |
| 10 |
f1 (x); // { dg-error "no match" } |
| 11 |
} |
| 12 |
|
| 13 |
// { dg-regexp {[^\n]*concept-1_a.C:7:[0-9]*: error: invalid cast[^\n]*\n} } |