summaryrefslogtreecommitdiff
path: root/support/regression/tests/bug-524209.c
blob: 67d2659e73d87ec16a642c37d4f78c64f06cd57c (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
24
25
26
27
28
29
30
31
32
33
34
35
36
/* Problem with casts and warnings.
 */
#include <testfwk.h>
#include <string.h>

typedef unsigned short UINT16;

typedef struct _Class Class;

typedef struct _Instance
{
  Class *pClass;
} Instance;

typedef struct _StringBuffer
{
  Instance header;
  UINT16 uLength;
  UINT16 uMaxLength;
} StringBuffer;


void _scan(StringBuffer *pSB)
{
  UNUSED(pSB);
}

void checkCast(void *pIn)
{
  Instance *p = (Instance *)pIn;
  _scan((StringBuffer *)p);
}

void testBug(void)
{
}