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

Subversion Repositories openrisc

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

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

Line No. Rev Author Line
1 693 jeremybenn
// { dg-options "--std=c++0x" }
2
template struct same_type;
3
template struct same_type {};
4
 
5
int lval_int;
6
int rval_int();
7
int const lval_const_int=0;
8
int const&& rval_const_int();
9
 
10
template  void deduce_lval_int(T && t)
11
{
12
  same_type();
13
}
14
 
15
template  void deduce_rval_int(T && t)
16
{
17
  same_type();
18
}
19
 
20
template  void deduce_lval_const_int(T && t)
21
{
22
  same_type();
23
}
24
 
25
template  void deduce_rval_const_int(T && t)
26
{
27
  same_type();
28
}
29
 
30
void f()
31
{
32
  deduce_lval_int(lval_int);
33
  deduce_rval_int(rval_int());
34
  deduce_lval_const_int(lval_const_int);
35
  deduce_rval_const_int(rval_const_int());
36
}

powered by: WebSVN 2.1.0

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