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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [cpp0x/] [auto20.C] - Blame information for rev 693

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
// Test for proper non-deduced context handling of the initializer
2
// for an auto declaration/new.
3
// { dg-options -std=c++0x }
4
 
5
struct with_apply
6
{
7
  template 
8
  void apply(const double&){}
9
};
10
 
11
auto p = &with_apply::apply<0>;
12
auto pp = new auto(&with_apply::apply<0>);
13
 
14
template 
15
void f()
16
{
17
  auto p = &T::template apply<0>;
18
}
19
 
20
template void f();

powered by: WebSVN 2.1.0

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