| 1 |
// { dg-additional-options "-fmodules-ts" } |
| 2 |
|
| 3 |
module Foo; |
| 4 |
|
| 5 |
void Frob () |
| 6 |
{ |
| 7 |
Bar (); // { dg-error "not declared" } |
| 8 |
Baz (); // { dg-error "not declared" } |
| 9 |
} |
| 10 |
|
| 11 |
static void Baz () {} |
| 12 |
static void Bar () {} |
| 13 |
|
| 14 |
void Quux () |
| 15 |
{ |
| 16 |
Bar (); |
| 17 |
Baz (); |
| 18 |
} |