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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [cpp0x/] [variadic-crash2.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
// Contributed by Dodji Seketeli 
2
// Origin: PR c++/39637
3
// { dg-do compile }
4
// { dg-options "-std=gnu++0x" }
5
 
6
template
7
void
8
f(Types...)
9
{
10
  enum {e = sizeof(Types)}; // { dg-error "parameter packs not expanded with '...'" }
11
  enum {e1 = sizeof...(Types)};
12
}
13
 
14
int
15
main()
16
{
17
    f(0);
18
}
19
 
20
// { dg-message "note" "Types" { target *-*-* } 10 }

powered by: WebSVN 2.1.0

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