Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/tests/preempt_longrun/stack.c

    r0322865c rcc3e4d0  
    1212}
    1313
    14 thread worker_t {};
     14thread Worker {};
    1515
    16 void main(worker_t * this) {
     16void main(Worker * this) {
    1717        volatile long p = 5_021_609ul;
    1818        volatile long a = 326_417ul;
    1919        volatile long n = 1l;
    20         for (volatile long i = 0; i < p; i++) {
    21                 n *= a;
    22                 n %= p;
     20        for (volatile long i = 0; i < p; i++) { 
     21                n *= a; 
     22                n %= p; 
    2323        }
    24 
     24               
    2525        if( n != a ) {
    2626                abort();
     
    2828}
    2929
    30 extern "C" {
    31 static worker_t * workers;
    32 }
    33 
    3430int main(int argc, char* argv[]) {
    3531        processor p;
    3632        {
    37                 worker_t w[7];
    38                 workers = w;
     33                Worker w[7];
    3934        }
    4035}
Note: See TracChangeset for help on using the changeset viewer.