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

Subversion Repositories openrisc

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
// PR c++/37177
2
// { dg-options -std=c++0x }
3
 
4
#include 
5
 
6
namespace N1
7
{
8
  template bool foo();
9
}
10
 
11
struct S
12
{
13
  template 
14
  static bool foo();
15
 
16
  template 
17
  bool bar();
18
};
19
 
20
template bool foo();
21
 
22
int main()
23
{
24
  (void)(&S::bar);
25
  decltype(&S::bar) a;
26
  typeid(&S::bar);
27
 
28
  (void*)(&S::foo);
29
  (void)(&S::foo);
30
  decltype(&S::foo) b;
31
  typeid(&S::foo);
32
 
33
  (void*)(&N1::foo);
34
  (void)(&N1::foo);
35
  decltype(&N1::foo) c;
36
  typeid(&N1::foo);
37
 
38
  (void*)(&foo);
39
  (void)(&foo);
40
  decltype(&foo) d;
41
  typeid(&foo);
42
 
43
  &foo == 0;
44
}

powered by: WebSVN 2.1.0

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