| 1 | // Redeclaring an existing C type alias should be accepted. Before the |
| 2 | // parser was setting TypeSymbol.language=.c for C aliases, the table's |
| 3 | // "Allow C type aliases to override existing C types" override never fired |
| 4 | // and the second declaration failed with `cannot register alias`. |
| 5 | |
| 6 | type C.RedeclareU16Alias = u16 |
| 7 | type C.RedeclareU16Alias = u16 |
| 8 | |
| 9 | fn test_c_alias_redeclaration_compiles() { |
| 10 | assert true |
| 11 | } |
| 12 |