brintos

brintos / llvm-project-archived public Read only

0
0
Text · 300 B · ddc8f7f Raw
8 lines · cpp
1// RUN: %clang_cc1 -fdiagnostics-parseable-fixits -std=c++26 -Wint-in-bool-context %s 2>&1 | FileCheck %s2 3int x;4bool t1 = x << x;5// CHECK-LABEL: 4:13: warning: converting the result of '<<' to a boolean6// CHECK: fix-it:"{{.*}}":{4:11-4:11}:"("7// CHECK-NEXT: fix-it:"{{.*}}":{4:17-4:17}:") != 0"8