summaryrefslogtreecommitdiffstats
path: root/tools/clang-tidy/test/bugprone-assert-side-effect.cpp
blob: 7cc0a79cf113a56792793c7b491c514c9bbcfdd8 (plain)
1
2
3
4
5
6
7
8
#include "structures.h"

// bugprone-assert-side-effect
void misc_assert_side_effect() {
  int X = 0;
  assert(X == 1);
  assert(X = 1);
}