Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gcc.c-torture/compile/pr48517.c @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
rev | line source |
---|---|
111 | 1 /* PR c/48517 */ |
2 /* { dg-do compile } */ | |
3 /* { dg-options "-std=gnu89" } */ | |
4 | |
5 void bar (const unsigned short *); | |
6 | |
7 void | |
8 foo (void) | |
9 { | |
10 static const unsigned short array[] = (const unsigned short []) { 0x0D2B }; | |
11 const unsigned short *ptr = array; | |
12 bar (ptr); | |
13 } |