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

Subversion Repositories openrisc

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

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

Line No. Rev Author Line
1 693 jeremybenn
// { dg-options "-fno-pretty-templates" }
2
 
3
template 
4
struct A
5
{
6
  struct AN;
7
};
8
 
9
void foo(void)
10
{
11
  A a = 0;              // { dg-error "A" }
12
}
13
 
14
template  T f(T);           // { dg-message "int f.int." }
15
template  T f(T, int = 0); // { dg-message "" }
16
 
17
template 
18
struct B
19
{
20
  typedef typename T::AN BN;
21
 
22
  BN f();                       // { dg-message "AN" }
23
  BN f(int = 0);                // { dg-message "" }
24
};
25
 
26
int main()
27
{
28
  f(1);                         // { dg-error "" }
29
  // { dg-message "candidate" "candidate note" { target *-*-* } 28 }
30
  B >().f();            // { dg-error "" }
31
  // { dg-message "candidate" "candidate note" { target *-*-* } 30 }
32
}

powered by: WebSVN 2.1.0

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