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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [cpp0x/] [auto29.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
// PR c++/51401
2
// { dg-do compile }
3
// { dg-options "-std=c++11" }
4
 
5
template 
6
struct A
7
{
8
  auto i;       // { dg-error "non-static data member declared" }
9
};
10
 
11
template 
12
struct B
13
{
14
  auto i = 0;   // { dg-error "non-static data member declared" }
15
};
16
 
17
struct C
18
{
19
  auto i;       // { dg-error "non-static data member declared" }
20
};
21
 
22
struct D
23
{
24
  auto i = 0;   // { dg-error "non-static data member declared" }
25
};

powered by: WebSVN 2.1.0

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