Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.c-torture/execute/pr28778.c @ 152:2b5abeee2509
update gcc11
author | anatofuz |
---|---|
date | Mon, 25 May 2020 07:50:57 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
extern void abort(void); typedef long GLint; void aglChoosePixelFormat (const GLint *); void find (const int *alistp) { const int *blist; int list[32]; if (alistp) blist = alistp; else { list[3] = 42; blist = list; } aglChoosePixelFormat ((GLint *) blist); } void aglChoosePixelFormat (const GLint * a) { int *b = (int *) a; if (b[3] != 42) abort (); } int main (void) { find (0); return 0; }