Browse Source

bug0109 and bug0110

pierre 26 years ago
parent
commit
1037d4965c
3 changed files with 12 additions and 1 deletions
  1. 9 0
      tests/tbf0109.pp
  2. 2 0
      tests/tbf0110.pp
  3. 1 1
      tests/tbs0109.pp

+ 9 - 0
tests/tbf0109.pp

@@ -0,0 +1,9 @@
+Type T = (aa,bb,cc,dd,ee,ff,gg,hh);
+     Tset = set of t;
+
+Var a: Tset;
+
+Begin
+  If (aa in a^) Then begin end;
+  {it seems that correct code is generated, but the syntax is wrong}
+End.

+ 2 - 0
tests/tbs0110.pp → tests/tbf0110.pp

@@ -1,3 +1,5 @@
+{ $OPT= -Fu../compiler }
+
 uses aasm;
 
 Begin

+ 1 - 1
tests/tbs0109.pp

@@ -4,6 +4,6 @@ Type T = (aa,bb,cc,dd,ee,ff,gg,hh);
 Var a: Tset;
 
 Begin
-  If (aa in a^) Then begin end;
+  If (aa in a) Then begin end;
   {it seems that correct code is generated, but the syntax is wrong}
 End.