| 1 |
// { dg-additional-options "-fmodules-ts" } |
| 2 |
|
| 3 |
import M; |
| 4 |
namespace foo {} |
| 5 |
|
| 6 |
int main() { |
| 7 |
struct bar::S a = bar::S; |
| 8 |
bar::X b = bar::S; |
| 9 |
|
| 10 |
struct foo::S c; // { dg-error "does not name a type" } |
| 11 |
auto d = foo::S; // { dg-error "not a member" } |
| 12 |
} |