From a9065ffa50b0e9754672a6bb2027350a18af421b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Sun, 6 Oct 2024 15:46:45 +0200 Subject: [PATCH] sample --- samples/incorrectLogicOperator/bad.c | 2 ++ samples/incorrectLogicOperator/good.c | 6 ++++++ 2 files changed, 8 insertions(+) create mode 100644 samples/incorrectLogicOperator/good.c diff --git a/samples/incorrectLogicOperator/bad.c b/samples/incorrectLogicOperator/bad.c index 8c86ea9403e0..11daaf4e4ce8 100644 --- a/samples/incorrectLogicOperator/bad.c +++ b/samples/incorrectLogicOperator/bad.c @@ -2,3 +2,5 @@ void foo(int x) { if (x >= 0 || x <= 10) {} } + +dummy=foo(); diff --git a/samples/incorrectLogicOperator/good.c b/samples/incorrectLogicOperator/good.c new file mode 100644 index 000000000000..a2d122fb1280 --- /dev/null +++ b/samples/incorrectLogicOperator/good.c @@ -0,0 +1,6 @@ + +void foo(int x) { + if (x >= 0 && x <= 10) {} +} + +dummy=foo();