2018-03-18 22:05:31 +01:00
|
|
|
// #8441
|
|
|
|
class C {
|
|
|
|
int a;
|
|
|
|
int b;
|
|
|
|
C() : a(1), b(1) { c; }
|
|
|
|
};
|
|
|
|
|
2019-11-13 20:36:31 +01:00
|
|
|
class misra_21_1_C {
|
|
|
|
public:
|
|
|
|
misra_21_1_C operator=(const misra_21_1_C &);
|
|
|
|
};
|
|
|
|
|
2019-12-01 14:51:12 +01:00
|
|
|
class C2 {
|
|
|
|
public:
|
|
|
|
C2();
|
|
|
|
private:
|
|
|
|
void* f;
|
|
|
|
};
|
|
|
|
C2::C2() : f(NULL) {}
|
|
|
|
|
2019-11-18 15:57:53 +01:00
|
|
|
static bool test_misra_21_1_crash()
|
2019-11-13 20:36:31 +01:00
|
|
|
{
|
|
|
|
auto misra_21_1_C a, b;
|
|
|
|
a = b;
|
|
|
|
}
|