Imported Upstream version 2.9.0
[debian/cc1111] / support / regression / tests / bug663539.c
1 /*
2    bug663539.c
3 */
4
5 #include <testfwk.h>
6
7 #if defined (SDCC_ds390) || defined (SDCC_mcs51)
8   volatile xdata at 0x7654 char x;
9 #endif
10
11 void
12 test_volatile(void)
13 {
14   ASSERT (1);
15
16 #if defined (SDCC_ds390) || defined (SDCC_mcs51)
17   x;         //this should end the simulation
18
19   while (1); //let the "watchdog" bite
20 #endif
21 }