Why do I receive a compilation error for my analysis with enum in PolySpace?
이전 댓글 표시
I use the following simple code to define an enumeration:
enum EnumTyp {A,B,C,D} ;
int main(void)
{ EnumTyp x;
x = A;
x = x + B;
}
But I get the following error message in PolySpace when starting my C-analysis:
Verifying PolySpace_enum_test.c
test.c:4: undeclared identifier `EnumTyp'
test.c:4: syntax error; found `x' expecting `;'
test.c:4: undeclared identifier `x'
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Polyspace Code Prover에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!