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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [g++.dg/] [ext/] [forscope2.C] - Blame information for rev 301

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 301 jeremybenn
// { dg-do compile }
2
// { dg-options -fpermissive }
3
 
4
// Copyright (C) 2001 Free Software Foundation, Inc.
5
// Contributed by Nathan Sidwell 4 Sept 2001 
6
 
7
// Bug 4206. We were nesting SCOPE_STMTs badly.
8
 
9
 
10
struct A
11
{
12
  A ();
13
  ~A ();
14
};
15
 
16
 
17
void Go( )
18
{
19
  for (int i = 1;;)     // { dg-warning "using obsolete binding" "" }
20
    {
21
      switch (1) {
22
      default: {}
23
      }
24
      A d;
25
    }
26
  i;  // { dg-warning "name lookup" "" }
27
}

powered by: WebSVN 2.1.0

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