gcc/testsuite/g++.dg/modules/dguide-4_c.C
raw| 1 | // PR c++/116403 |
| 2 | // { dg-additional-options "-fmodules-ts" } |
| 3 | |
| 4 | import B; |
| 5 | |
| 6 | int main() { |
| 7 | GMF gmf(123); |
| 8 | GMF<int> test_gmf = gmf; |
| 9 | |
| 10 | Attached attached(456); |
| 11 | Attached<int> test_attached = attached; |
| 12 | } |
| 13 | |
| 14 | GMF(int) -> GMF<double>; // { dg-error "ambiguating" } |
| 15 | Attached(int) -> Attached<double>; // { dg-error "ambiguating" } |