aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/compile/pr48517.c
blob: 30b3ecbb354703b305d01a03b2cd5c400faa0f2a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* PR c/48517 */
/* { dg-do compile } */
/* { dg-options "" } */

void bar (const unsigned short *);

void
foo (void)
{
  static const unsigned short array[] = (const unsigned short []) { 0x0D2B };
  const unsigned short *ptr = array;
  bar (ptr);
}