Ticket #158: mgrad.tst

File mgrad.tst, 408 bytes (added by Oleksandr , 15 years ago)

same test

Line 
1ring r = 0,(x, y), dp;
2intmat A[2][2] = 1, 0, 0, 1;
3attrib(basering, "mgrad", A); 
4
5proc getGrad2(){ attrib(basering, "mgrad"); }
6getGrad2(); // produces nothing!
7
8
9
10
11
12proc getGrad(def A){ attrib(A, "mgrad"); }
13
14getGrad(basering); // Produces: "atKill: unknown type(267)"
15/*
16::getGrad   0. parameter def A;
17::getGrad   1>  attrib(A, "mgrad");
181,0,
190,1
20::getGrad   2>
21atKill: unknown type(267)
22*/
23
24$$$
25