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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [g++.dg/] [cpp0x/] [collapse.C] - Blame information for rev 478

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

Line No. Rev Author Line
1 301 jeremybenn
// { dg-options "--std=c++0x" }
2
template struct same_type;
3
template struct same_type {};
4
 
5
typedef int & lref;
6
typedef int const & clref;
7
typedef int && rref;
8
typedef int const && crref;
9
 
10
template
11
struct S
12
{
13
  typedef T & lref;
14
  typedef T const & clref;
15
  typedef T && rref;
16
  typedef T const && crref;
17
};
18
 
19
void f()
20
{
21
  same_type();
22
  same_type();
23
  same_type();
24
  same_type();
25
 
26
  same_type();
27
  same_type();
28
  same_type();
29
 
30
  same_type::lref &, int &>();
31
  same_type::lref &&, int &>();
32
  same_type::rref &, int &>();
33
  same_type::rref &&, int &&>();
34
 
35
  same_type::rref, int const &>();
36
  same_type::crref, int volatile &&>();
37
  same_type::clref, int const &>();
38
}

powered by: WebSVN 2.1.0

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