| 1 |
// PR c++/120412 |
| 2 |
// { dg-additional-options "-fmodules -std=c++20" } |
| 3 |
|
| 4 |
import m; |
| 5 |
|
| 6 |
int main() { |
| 7 |
// { dg-error "instantiation exposes TU-local entity '(fun1|Dodgy)'" "" { target *-*-* } 0 } |
| 8 |
fun2(123); // { dg-message "required from here" } |
| 9 |
} |