aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/algol68/execute/uniting-1.a68
blob: dee0b50b282fbffde37901741c76c6c0fb6992a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
# { dg-options "-fstropping=upper" }  #
BEGIN UNION(INT,REAL,CHAR) datum := 3.14;
      UNION(INT,REAL,[]INT,CHAR) datux;
      datux := datum;
      ASSERT (CASE datux
              IN (INT): 10,
                 (REAL): 20,
                 (CHAR c): 30
              ESAC = 20);
      SKIP
END