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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [cpp0x/] [variadic-throw.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
// { dg-prune-output "note" }
3
// PR c++/33509
4
template struct pair
5
{
6
  int i, j;
7
  pair() : i(M), j(N) {}
8
};
9
 
10
template struct S
11
{
12
  template static int foo() throw (pair ...) // { dg-error "mismatched" }
13
  {
14
    return 1;
15
  }
16
};
17
 
18
int bar ()
19
{
20
  return S<0, 1, 2>::foo<0, 1, 3> ();
21
}
22
 
23
int wibble()
24
{
25
  return S<0, 1, 2>::foo<0, 1> (); // { dg-error "no matching" }
26
}

powered by: WebSVN 2.1.0

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