1 parent c3bb804 commit a9065ffCopy full SHA for a9065ff
2 files changed
samples/incorrectLogicOperator/bad.c
@@ -2,3 +2,5 @@
2
void foo(int x) {
3
if (x >= 0 || x <= 10) {}
4
}
5
+
6
+dummy=foo();
samples/incorrectLogicOperator/good.c
@@ -0,0 +1,6 @@
1
+void foo(int x) {
+ if (x >= 0 && x <= 10) {}
+}
0 commit comments