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