misra.py: Add regression test for R21.1 crash (#2356)
This commit is contained in:
parent
09eaa412b1
commit
da163ae0e8
|
@ -1,4 +1,3 @@
|
||||||
|
|
||||||
// #8441
|
// #8441
|
||||||
class C {
|
class C {
|
||||||
int a;
|
int a;
|
||||||
|
@ -6,3 +5,13 @@ class C {
|
||||||
C() : a(1), b(1) { c; }
|
C() : a(1), b(1) { c; }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
class misra_21_1_C {
|
||||||
|
public:
|
||||||
|
misra_21_1_C operator=(const misra_21_1_C &);
|
||||||
|
};
|
||||||
|
|
||||||
|
static bool test_misra_21_1_crash(const C* cc)
|
||||||
|
{
|
||||||
|
auto misra_21_1_C a, b;
|
||||||
|
a = b;
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue