mirror of
https://bitbucket.org/smil3y/kde-extraapps.git
synced 2025-02-27 12:22:54 +00:00
30 lines
657 B
C++
30 lines
657 B
C++
![]() |
#include <iostream>
|
||
|
|
||
|
int main( int argc, char **argv )
|
||
|
{
|
||
|
RingBuffer myBuffer;
|
||
|
std::vector<uint64_t> testVector;
|
||
|
|
||
|
std::srand( std::time ( 0 ) );
|
||
|
|
||
|
fillBuffer( myBuffer, testVector );
|
||
|
testWithOnlyknown( myBuffer, testVector );
|
||
|
testWithSomeKnown( myBuffer, testVector);
|
||
|
|
||
|
std::cout << "Done Testing" << std::endl;
|
||
|
int i;
|
||
|
if(i > 100)
|
||
|
{
|
||
|
/// This is of course only to test cpp check
|
||
|
std::string input_string;
|
||
|
char *str = (char *)malloc(strlen(input_string)+1);
|
||
|
strcpy(str, input_string); /* What if malloc() fails? */
|
||
|
if(input_string == "")
|
||
|
{
|
||
|
}
|
||
|
}
|
||
|
|
||
|
return 0;
|
||
|
}
|
||
|
|