summaryrefslogtreecommitdiff
path: root/support/regression/tests/gcc-torture-execute-pr42512.c
blob: 07843041d163767194668b177d56abf013536064 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/*
   pr42512.c from the execute part of the gcc torture tests.
 */

#include <testfwk.h>

#ifdef __SDCC
#pragma std_c99
#endif

short g_3;

void
testTortureExecute (void)
{
    int l_2;
    for (l_2 = -1; l_2 != 0; l_2 = (unsigned char)(l_2 - 1))
      g_3 |= l_2;
    if (g_3 != -1)
      ASSERT (0);
    return;
}