Browse Source

* mark the global variable as "public;" so its assembler symbol is exported
(because @gotpcrel shouldn't be used for non-global/exported symbols on
some platforms, such as OS X)
o fixes the test on OS X

git-svn-id: trunk@28986 -

Jonas Maebe 10 years ago
parent
commit
b662d63258
1 changed files with 1 additions and 1 deletions
  1. 1 1
      tests/webtbs/tw23109.pp

+ 1 - 1
tests/webtbs/tw23109.pp

@@ -2,7 +2,7 @@
 { %opt=-Cg -vew }
 { %opt=-Cg -vew }
 
 
 var
 var
-  global: boolean;
+  global: boolean; public;
 begin
 begin
   asm
   asm
     movq global@GOTPCREL(%rip), %rax
     movq global@GOTPCREL(%rip), %rax