Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/g++.dg/opt/static4.C @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
// PR 13898 // Make sure the two X variables get assigned unique assembler names // if they are promoted to static storage. // { dg-do compile } int g(int i) { if (i<1) { const int x[3] = { 1,2,3 }; return x[i]; } else { const int x[3] = { 4,5,6 }; return x[i]; } }