OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [init/] [constant1.C] - Rev 715

Go to most recent revision | Compare with Previous | Blame | View Log

// PR c++/51554

typedef unsigned char uint8;
typedef unsigned int uint32;

const uint32 XX[] = { 1, 3, 7 };

const uint8 V[] = {
  *(((const uint8*)&XX[0]) + 0),
  *(((const uint8*)&XX[0]) + 1),
  *(((const uint8*)&XX[0]) + 2),
  *(((const uint8*)&XX[0]) + 3),
  *(((const uint8*)&XX[1]) + 0),
  *(((const uint8*)&XX[1]) + 1),
  *(((const uint8*)&XX[1]) + 2),
  *(((const uint8*)&XX[1]) + 3),
};

Go to most recent revision | Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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