8 lines · cpp
1// RUN: %clang_cc1 -fsyntax-only -verify %s2 3// C permits a 'static_assert' in the first part of a 'for' loop4// whereas C++ does not.5void f() {6 for(static_assert(true);;) {} // expected-error {{expected expression}}7}8 1// RUN: %clang_cc1 -fsyntax-only -verify %s2 3// C permits a 'static_assert' in the first part of a 'for' loop4// whereas C++ does not.5void f() {6 for(static_assert(true);;) {} // expected-error {{expected expression}}7}8