aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/algol68/execute/assignation-struct-2.a68
blob: 61734cc0db65e53dab1be9a18449a469fb83d234 (plain)
1
2
3
4
5
6
7
8
# { dg-options "-fstropping=upper" }  #
# Struct containing a multiple, which must be copied when
  the struct value is assigned.  #
BEGIN MODE FOO = STRUCT (STRING s, INT i);
      FOO f1;
      f1 := ("foo", 10);
      ASSERT (i OF f1 = 10)
END