Debian Codegraph @

clang/test/SemaCXX/for-static-assert.cpp

raw
1 // RUN: %clang_cc1 -fsyntax-only -verify %s
2
3 // C permits a 'static_assert' in the first part of a 'for' loop
4 // whereas C++ does not.
5 void f() {
6 for(static_assert(true);;) {} // expected-error {{expected expression}}
7 }