Debian Codegraph @

gcc/testsuite/g++.dg/contracts/pr117579.C

raw
1 // Check that contract assertion on a non-empty statement doesn't cause an
2 // ICE.
3 // { dg-options "-std=c++2a -fcontracts " }
4
5 void f();
6 int main ()
7 {
8 [[assert: true]] f(); // { dg-error "assertions must be followed by" }
9 }