brintos

brintos / llvm-project-archived public Read only

0
0
Text · 260 B · 9455198 Raw
13 lines · cpp
1// RUN: %clang_cc1 -std=c++20 -fsyntax-only -verify %s2 3constexpr int expr() {4  if (({5        int f;6        f = 0;7        if (f)8          break; // expected-error {{'break' statement not in loop or switch statement}}9      }))10    return 2;11  return 1;12}13