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/] [initlist18.C] - Diff between revs 301 and 338

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

Rev 301 Rev 338
// PR c++/40308, 40311
// PR c++/40308, 40311
// { dg-do run }
// { dg-do run }
// { dg-options "-std=c++0x" }
// { dg-options "-std=c++0x" }
template< typename T >
template< typename T >
struct test {
struct test {
   test() : data{} {}
   test() : data{} {}
   T data;
   T data;
};
};
int main()
int main()
{
{
   test x;
   test x;
   test y;
   test y;
   int * a = new int{};
   int * a = new int{};
   int * b = new int{5};
   int * b = new int{5};
   return 0;
   return 0;
}
}
 
 

powered by: WebSVN 2.1.0

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