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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [cpp0x/] [variadic77.C] - Blame information for rev 717

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

Line No. Rev Author Line
1 693 jeremybenn
// PR c++/33496
2
// { dg-do compile }
3
// { dg-options "-std=gnu++0x" }
4
 
5
template struct pair
6
{
7
  int i, j;
8
  pair () : i (M), j (N) {}
9
};
10
 
11
template struct S
12
{
13
  template static int foo ()
14
  {
15
    return sizeof... (pair);    // { dg-error "mismatched argument pack lengths" }
16
  }
17
};
18
 
19
int bar ()
20
{
21
  return S<0, 1, 2>::foo<0, 1> ();
22
}

powered by: WebSVN 2.1.0

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