OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc2/] [gcc/] [testsuite/] [g++.dg/] [opt/] [static4.C] - Blame information for rev 384

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 301 jeremybenn
// PR 13898
2
// Make sure the two X variables get assigned unique assembler names
3
// if they are promoted to static storage.
4
 
5
// { dg-do compile }
6
 
7
int g(int i) {
8
  if (i<1) {
9
    const int x[3] = { 1,2,3 };
10
    return x[i];
11
  } else {
12
    const int x[3] = { 4,5,6 };
13
    return x[i];
14
  }
15
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.