Files
oraset/test2.ora
T
JGZ_YES 51ece5afed
Build and Package Oraset / build (macos-latest) (push) Waiting to run
Build and Package Oraset / build (ubuntu-latest) (push) Waiting to run
Build and Package Oraset / build (windows-latest) (push) Waiting to run
Build and Package Oraset / release (push) Blocked by required conditions
Initial commit: Oraset B-5
2026-07-23 13:25:11 +08:00

43 lines
687 B
Plaintext

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("测试完成!");