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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [cpp0x/] [alias-decl-2.C] - Blame information for rev 715

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
 
3
template struct S0 {};
4
template using AS0 = S0;
5
 
6
template class TT>
7
void f(TT);
8
 
9
template class AS0; // { dg-error "alias templ\[^\n\r\]*specialization\[^\n\r\]*after\[^\n\r\]*class" }
10
 
11
void
12
foo()
13
{
14
  AS0 a;
15
  f(a);
16
}
17
 
18
template struct Vector{};
19
template struct Alloc {};
20
 
21
template using Vec = Vector >;
22
 
23
template void g(Vector >);
24
 
25
template class TT> void h(TT); // { dg-error "provided for" }
26
 
27
void
28
bar()
29
{
30
  Vec a;
31
  g(a);
32
  h(a); // { dg-error "no matching function|wrong number of template arguments" }
33
}

powered by: WebSVN 2.1.0

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