Browse Source

* test for fixed bug to play safe

Florian Klämpfl 3 years ago
parent
commit
f36a665879
1 changed files with 17 additions and 0 deletions
  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.