/*
    bug 1750318
*/

#include <testfwk.h>

#if defined(__SDCC_pic14)
__xdata __at(0x01A0) char bar;
#else
__xdata __at(0x1234) char bar;
#endif

// no need to call this, it generates compiler error:
//   Internal error: validateOpType failed in
//   OP_SYMBOL(IC_RESULT (ic)) @ SDCCcse.c:2172:
//   expected symbol, got value
void
foo (void)
{
  *(char volatile __xdata *) &bar = 0x80;
}

void
testBug (void)
{
  ASSERT (1);
}
