URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Go to most recent revision |
Only display areas with differences |
Details |
Blame |
View Log
Rev 154 |
Rev 816 |
// { dg-do compile }
|
// { dg-do compile }
|
|
|
// Copyright (C) 2003 Free Software Foundation, Inc.
|
// Copyright (C) 2003 Free Software Foundation, Inc.
|
// Contributed by Nathan Sidwell 22 Jul 2003
|
// Contributed by Nathan Sidwell 22 Jul 2003
|
|
|
// PR c++ 11596
|
// PR c++ 11596
|
|
|
template struct A { enum { value }; };
|
template struct A { enum { value }; };
|
template struct B { enum { value = A<1>::value }; };
|
template struct B { enum { value = A<1>::value }; };
|
int ary[!B<1>::value ? 1 : -1];
|
int ary[!B<1>::value ? 1 : -1];
|
|
|
template struct A1 { enum { value = 1}; };
|
template struct A1 { enum { value = 1}; };
|
template struct A1 { enum { value}; };
|
template struct A1 { enum { value}; };
|
template struct B1 { enum { value = A1<1>::value }; };
|
template struct B1 { enum { value = A1<1>::value }; };
|
|
|
int ary1[!B1<1>::value ? 1 : -1];
|
int ary1[!B1<1>::value ? 1 : -1];
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.