echo("Oraset B-5 C++风格功能测试");
echo("=============================");

echo("");
echo("=== 结构体测试 ===");
struct Point {
    x;
    y;
};

echo("");
echo("=== 枚举测试 ===");
enum Color {
    Red,
    Green,
    Blue
};

echo("");
echo("=== typedef测试 ===");
typedef Point Pnt;

echo("");
echo("=== goto和标签测试 ===");
let n = 0;
start:
echo("n =", n);
n++;
if (n < 3) goto start;

echo("");
echo("=== 数组操作测试 ===");
let arr = [10, 20, 30, 40, 50];
echo("arr[0] =", arr[0]);
echo("arr[1] =", arr[1]);
echo("arr[2] =", arr[2]);

echo("");
echo("=== 数组长度测试 ===");
echo("arrlen(arr) =", arrlen(arr));

echo("");
echo("测试完成!");