Start fixing #3515 (Add samples/id/good|bad.cpp)
http://sourceforge.net/apps/trac/cppcheck/ticket/3515
This commit is contained in:
parent
9019190a37
commit
3066bb3430
|
@ -28,4 +28,5 @@ astyle $style $options test/*.cpp
|
|||
astyle $style $options test/*.h
|
||||
|
||||
astyle $style $options tools/*.cpp
|
||||
astyle $style $options --recursive "samples/*.c"
|
||||
|
||||
|
|
|
@ -0,0 +1,11 @@
|
|||
int foo(int *p)
|
||||
{
|
||||
int a = p;
|
||||
return a + 4;
|
||||
}
|
||||
int main()
|
||||
{
|
||||
int i[10];
|
||||
foo(i);
|
||||
}
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
int* foo(int *p)
|
||||
{
|
||||
return p + 4;
|
||||
}
|
||||
int main()
|
||||
{
|
||||
int i[10];
|
||||
foo(i);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue