Skip to content

Commit

Permalink
Also test mfc.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
chrchr-github committed Feb 9, 2024
1 parent eb35d69 commit a1a2127
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 9 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/CI-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -197,8 +197,9 @@ jobs:
..\..\cppcheck --dump naming_test.cpp || exit /b !errorlevel!
python3 ..\naming.py --var='[a-z].*' --function='[a-z].*' naming_test.cpp.dump || exit /b !errorlevel!
- name: Check windows.cpp syntax
- name: Check Windows test syntax
if: matrix.config == 'debug'
run: |
cd test\cfg
cl.exe windows.cpp -DUNICODE=1 -D_UNICODE=1 /Zs || exit /b !errorlevel!
cl.exe mfc.cpp /EHsc /Zs || exit /b !errorlevel!
26 changes: 18 additions & 8 deletions test/cfg/mfc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,23 @@
#include <afxwin.h>


class MyClass : public CObject {
DECLARE_DYNAMIC(MyClass)
DECLARE_DYNCREATE(MyClass)
DECLARE_SERIAL(MyClass)
class MyClass1 : public CObject {
DECLARE_DYNAMIC(MyClass1)
public:
MyClass() {}
MyClass1() {}
};
IMPLEMENT_DYNAMIC(MyClass, CObject)
IMPLEMENT_DYNCREATE(MyClass, CObject)
IMPLEMENT_SERIAL(MyClass,CObject, 42)
IMPLEMENT_DYNAMIC(MyClass1, CObject)

class MyClass2 : public CObject {
DECLARE_DYNCREATE(MyClass2)
public:
MyClass2() {}
};
IMPLEMENT_DYNCREATE(MyClass2, CObject)

class MyClass3 : public CObject {
DECLARE_SERIAL(MyClass3)
public:
MyClass3() {}
};
IMPLEMENT_SERIAL(MyClass3, CObject, 42)

0 comments on commit a1a2127

Please sign in to comment.