Ignore:
Timestamp:
Jun 28, 2018, 4:04:11 PM (7 years ago)
Author:
Rob Schluntz <rschlunt@…>
Branches:
ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, no_list, persistent-indexer, pthread-emulation, qualifiedEnum
Children:
e3b2474
Parents:
a12c81f3 (diff), 944ce47 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'master' of plg.uwaterloo.ca:/u/cforall/software/cfa/cfa-cc

File:
1 edited

Legend:

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

    ra12c81f3 rc653b37  
    44#include <time>
    55
     6#define __kick_rate 5000000ul
    67#include "long_tests.h"
    78
     
    1718
    1819void main(worker_t & this) {
    19         volatile long long p = 5_021_609ul;
    20         volatile long long a = 326_417ul;
    21         volatile long long n = 1l;
    22         for (volatile long long i = 0; TEST(i < p); i++) {
    23                 n *= a;
    24                 n %= p;
    25                 KICK_WATCHDOG;
    26         }
     20        while(TEST(0)) {
     21                volatile long long p = 5_021_609ul;
     22                volatile long long a = 326_417ul;
     23                volatile long long n = 1l;
     24                for (volatile long long i = 0; i < p; i++) {
     25                        n *= a;
     26                        n %= p;
     27                        KICK_WATCHDOG;
     28                }
    2729
    28         if( !TEST(n == a) ) {
    29                 abort();
     30                if( !TEST(n == a) ) {
     31                        abort();
     32                }
    3033        }
    3134}
Note: See TracChangeset for help on using the changeset viewer.