mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-09-09 19:43:27 +02:00

Change-Id: I753591b8465ec57477989fee7bbaa0537a9d7dc7 Signed-off-by: Simon Marchi <simon.marchi@polymtl.ca> Reviewed-on: https://git.eclipse.org/r/35758 Reviewed-by: Marc Khouzam <marc.khouzam@ericsson.com> Tested-by: Marc Khouzam <marc.khouzam@ericsson.com>
51 lines
892 B
C++
51 lines
892 B
C++
//============================================================================
|
|
// Name : BreakpointTestApp.cpp
|
|
// Author : Francois Chouinard
|
|
// Version : 1.0
|
|
// Copyright : Ericsson AB
|
|
// Description : Breakpoint test application
|
|
//============================================================================
|
|
#include "Sleep.h"
|
|
#include <iostream>
|
|
using namespace std;
|
|
|
|
const int ARRAY_SIZE = 256;
|
|
|
|
char charBlock[ARRAY_SIZE];
|
|
int integerBlock[ARRAY_SIZE];
|
|
|
|
void zeroBlocks(int abc)
|
|
{
|
|
for (int i = 0; i < ARRAY_SIZE; i++) {
|
|
charBlock[i] = '\0';
|
|
integerBlock[i] = 0;
|
|
}
|
|
}
|
|
|
|
void setBlocks()
|
|
{
|
|
for (int i = 0; i < ARRAY_SIZE; i++) {
|
|
charBlock[i] = (char) i;
|
|
integerBlock[i] = i;
|
|
}
|
|
}
|
|
|
|
void loop()
|
|
{
|
|
int j = 10;
|
|
int i = 0;
|
|
for (i = 0; i < ARRAY_SIZE; i++)
|
|
j = i;
|
|
}
|
|
|
|
int main()
|
|
{
|
|
int a = 10;
|
|
|
|
zeroBlocks(1);
|
|
loop();
|
|
setBlocks();
|
|
SLEEP(1);
|
|
a++;
|
|
return 0;
|
|
}
|