source: git/Tst/Manual/Access_to_elements_of_a_user_defined_type.tst @ 4efdd1c

spielwiese
Last change on this file since 4efdd1c was 894057, checked in by Oleksandr Motsak <motsak@…>, 13 years ago
ADD: Tests from online manual (res+stat on mamawutz): short ones Tst/Manual/s.lst
  • Property mode set to 100644
File size: 209 bytes
Line 
1LIB "tst.lib"; tst_init();
2  newstruct("nt","int a,poly b,string c");
3  nt A;
4  3+A.a;
5  A.c="example string";
6  ring r;
7  A.b=poly(1); // assignment: expression must be of the given type
8  A;
9tst_status(1);$
Note: See TracBrowser for help on using the repository browser.