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

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [testsuite/] [g++.dg/] [cpp0x/] [variadic-crash2.C] - Blame information for rev 338

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 301 jeremybenn
// Contributed by Dodji Seketeli 
2
// Origin: PR c++/39637
3
// { dg-options "-std=gnu++0x" }
4
// { dg-do "compile" }
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.