blob: b96d5e74f92602b2974d13a11cea3c74eeac317a (
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
|
/*
bug663539.c
*/
#include <testfwk.h>
#if defined (__SDCC_ds390) || defined (__SDCC_mcs51)
volatile __xdata __at 0x7654 char x;
#endif
void
test_volatile (void)
{
#if defined (__SDCC_ds390) || defined (__SDCC_mcs51)
//fool the compact-results.py python script
__prints("--- Summary: 0/1/1: 0 failed of 1 tests in 1 cases.");
x; //this should end the simulation
while (1); //let the "watchdog" bite
#endif
}
|