1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
/* * Rule: DCL05-C * Source: wiki * Status: FAIL - Should trigger DCL05-C violation */ #include <Windows.h> /* typedef struct tagPOINT { long x, y; } POINT, *LPPOINT; */ void func(const LPPOINT pt) { /* Can modify pt's contents, against expectations */ }