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

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [testsuite/] [g++.dg/] [cpp0x/] [variadic70.C] - Diff between revs 301 and 338

Only display areas with differences | Details | Blame | View Log

Rev 301 Rev 338
// { dg-do "run" }
// { dg-do "run" }
// { dg-options "-std=gnu++0x" }
// { dg-options "-std=gnu++0x" }
template  struct bomb;
template  struct bomb;
template 
template 
struct bomb {
struct bomb {
 static const T value = 0;
 static const T value = 0;
};
};
template 
template 
struct bomb {
struct bomb {
 static const T value = v + bomb::value;
 static const T value = v + bomb::value;
};
};
extern "C" void abort();
extern "C" void abort();
int main() {
int main() {
  bomb b;
  bomb b;
  if (b.value != 10)
  if (b.value != 10)
    abort();
    abort();
  return 0;
  return 0;
}
}
 
 

powered by: WebSVN 2.1.0

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