URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 301 |
Rev 384 |
// { dg-options "-std=c++0x" }
|
// { dg-options "-std=c++0x" }
|
void foo()
|
void foo()
|
{
|
{
|
static_assert(1, "okay");
|
static_assert(1, "okay");
|
static_assert (0 == 1, "zero is never equal to one"); // { dg-error "never equal" }
|
static_assert (0 == 1, "zero is never equal to one"); // { dg-error "never equal" }
|
}
|
}
|
|
|
class X {
|
class X {
|
static_assert(1, "okay");
|
static_assert(1, "okay");
|
static_assert (0 == 1, "zero is never equal to one"); // { dg-error "never equal" }
|
static_assert (0 == 1, "zero is never equal to one"); // { dg-error "never equal" }
|
};
|
};
|
|
|
static_assert(1, "okay");
|
static_assert(1, "okay");
|
static_assert (0 == 1, "zero is never equal to one"); // { dg-error "never equal" }
|
static_assert (0 == 1, "zero is never equal to one"); // { dg-error "never equal" }
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.