source: src/Clight/test/pdata1.c @ 2106

Last change on this file since 2106 was 156, checked in by campbell, 10 years ago

pdata support

File size: 172 bytes
Line 
1/* Everything in pdata is in xdata, so pointers can be converted. */
2
3__pdata int i;
4
5int main(void) {
6  __pdata int *p = &i;
7  __xdata int *q = p;
8  *q = 5;
9  return i;
10}
Note: See TracBrowser for help on using the repository browser.