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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [opt/] [const5.C] - Rev 751

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

// We don't have a good way of determining how ".rodata" is spelled on
// all targets, so we limit this test to a few common targets where we
// do know the spelling.
// { dg-do compile { target i?86-*-linux* x86_64-*-linux* } }
// { dg-final { scan-assembler "\\.rodata" } }

template <typename T>
struct B {
  int i;
};

// This declaration should be placed in .rodata.
const B<int> const_B __attribute__((used)) = { 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.