summaryrefslogtreecommitdiff
path: root/support/regression/tests/gcc-torture-execute-20000217-1.c
blob: 0d265f37e6de23862f0420cbd46a6db734ae74c3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/*
   20000217-1.c from the execute part of the gcc torture tests.
 */

#include <testfwk.h>

#ifdef __SDCC
#pragma std_c99
#endif

unsigned short int showbug(unsigned short int *a, unsigned short int *b)
{
        *a += *b -8;
        return (*a >= 8);
}

void
testTortureExecute (void)
{
        unsigned short int x = 0;
        unsigned short int y = 10;

        if (showbug(&x, &y) != 0)
	  ASSERT (0);

	return;
}