Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • benchmark/creation/cfa_gen.cfa

    rdfda49f r69e398f  
    1 #include "../bench.h"
     1#include "bench.h"
    22
    3 generator G {
     3struct C {
    44        volatile int restart; // ensure compiler does not optimize away all the code
    55};
    6 void ?{}( G & g ) { g.restart = 0; }
    7 void main( G & ) {}
     6void ?{}( C & c ) { c.restart = 0; }
     7void main( C & ) {}
    88
    99int main( int argc, char * argv[] ) {
     
    1111        BENCH(
    1212                for ( times ) {
    13                          G g;
     13                         C c;
    1414                },
    1515                result
Note: See TracChangeset for help on using the changeset viewer.