summaryrefslogtreecommitdiff
path: root/support/regression/tests/bug1750318.c
blob: 4c18a7d7f470c97e33d7a047e52eb53eb4687220 (plain)
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
/*
    bug 1750318
*/

#include <testfwk.h>

#if defined(__SDCC_pic14)
__xdata char __at(0x01A0) bar;
#else
__xdata char __at(0x1234) 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);
}