浏览代码

* test for fixed bug to play safe

Florian Klämpfl 3 年之前
父节点
当前提交
f36a665879
共有 1 个文件被更改,包括 17 次插入0 次删除
  1. 17 0
      tests/webtbs/tw39464.pp

+ 17 - 0
tests/webtbs/tw39464.pp

@@ -0,0 +1,17 @@
+{ %norun }
+program Test;
+
+{$Mode ObjFPC}
+
+type
+  TTestRec = packed record
+    Empty: packed record end;
+  end;
+
+function GetEmptyPtr(R: TTestRec): Pointer;
+begin
+  Result := @R.Empty;
+end;
+    
+begin
+end.