brintos

brintos / llvm-project-archived public Read only

0
0
Text · 222 B · f080443 Raw
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