| 1 |
// { dg-additional-options "-fmodules -Wno-global-module" } |
| 2 |
// { dg-module-cmi M } |
| 3 |
|
| 4 |
module; |
| 5 |
|
| 6 |
template <class T> struct A { |
| 7 |
void f() const { } |
| 8 |
} __attribute__ ((deprecated ("y tho"))); |
| 9 |
|
| 10 |
export module M; |
| 11 |
|
| 12 |
export template <class T> |
| 13 |
A<T> a; // { dg-warning "deprecated" } |