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