diff options
Diffstat (limited to 'polly/test/CodeGen/single_do_loop_one_iteration.c')
| -rw-r--r-- | polly/test/CodeGen/single_do_loop_one_iteration.c | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/polly/test/CodeGen/single_do_loop_one_iteration.c b/polly/test/CodeGen/single_do_loop_one_iteration.c new file mode 100644 index 00000000000..df9c99d8f90 --- /dev/null +++ b/polly/test/CodeGen/single_do_loop_one_iteration.c @@ -0,0 +1,25 @@ +#define N 20 +#include "limits.h" + +int main () { + int i; + int A[N]; + + A[0] = 1; + + __sync_synchronize(); + + i = 0; + + do { + A[0] = 0; + ++i; + } while (i < 1); + + __sync_synchronize(); + + if (A[0] == 0) + return 0; + else + return 1; +} |

