]> gcc.gnu.org Git - gcc.git/blob - gcc/testsuite/g++.dg/cpp0x/static_assert1.C
PR c++/92590 - wrong handling of inherited default ctor.
[gcc.git] / gcc / testsuite / g++.dg / cpp0x / static_assert1.C
1 // { dg-do compile { target c++11 } }
2 void foo()
3 {
4 static_assert(1, "okay");
5 static_assert (0 == 1, "zero is never equal to one"); // { dg-error "never equal" }
6 }
7
8 class X {
9 static_assert(1, "okay");
10 static_assert (0 == 1, "zero is never equal to one"); // { dg-error "never equal" }
11 };
12
13 static_assert(1, "okay");
14 static_assert (0 == 1, "zero is never equal to one"); // { dg-error "never equal" }
This page took 0.03789 seconds and 5 git commands to generate.