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/] [forscope1.C] - Rev 307
Go to most recent revision | Compare with Previous | Blame | View Log
// { dg-do compile }
// { dg-options -fno-for-scope }
// Copyright (C) 2001 Free Software Foundation, Inc.
// Contributed by Nathan Sidwell 4 Sept 2001 <nathan@codesourcery.com>
// Bug 4206. We were nesting SCOPE_STMTs badly.
struct A
{
A ();
~A ();
};
void Go( )
{
for (int i = 1;;)
{
switch (1) {
default: {}
}
A d;
}
i;
}
Go to most recent revision | Compare with Previous | Blame | View Log