Changeset 0bf03ba2 for tests/nowarn


Ignore:
Timestamp:
Dec 20, 2024, 9:38:52 PM (4 weeks ago)
Author:
Michael Brooks <mlbrooks@…>
Branches:
master
Children:
0cd168f
Parents:
3df3a8f
Message:

Remove warnings due to unused parameters in generated code for zero-length ttype instantiations.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tests/nowarn/unused.cfa

    r3df3a8f r0bf03ba2  
    1717enum () foo_t { foo };
    1818
     19// on empty tuple,  __cleanup_dtor takes zero actions on its param and
     20// _thunk's purpose is to ignore its param
     21forall( Args... | { void foo( Args ); } )
     22void wrap( Args ) {}
     23void foo() {}
     24void callWrap() {
     25    wrap();
     26}
     27
    1928
    2029int main() {
Note: See TracChangeset for help on using the changeset viewer.