blob: a54617598fb940a6f8f288069f824e3f45f119ea (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
// { dg-options "-std=c++0x" }
void foo()
{
static_assert(1, "okay");
static_assert (0 == 1, "zero is never equal to one"); // { dg-error "never equal" }
}
class X {
static_assert(1, "okay");
static_assert (0 == 1, "zero is never equal to one"); // { dg-error "never equal" }
};
static_assert(1, "okay");
static_assert (0 == 1, "zero is never equal to one"); // { dg-error "never equal" }
|