source: proto/pabloj/trunk/input/test/visitors/ExpandAugmentedAssignments/expandAugmentedAssignments.s2k @ 3690

Last change on this file since 3690 was 3690, checked in by ksherdy, 4 years ago

Renamed test extensions.

File size: 309 bytes
Line 
1function void Test() {
2        stream<1> x;
3        stream<1> y;
4        stream<1> z;
5
6        x = x | y;                      // Expected result
7        x |= y;                         // Translated to expected result
8                         
9        x = x & y;                     
10        x &= y;                         
11       
12        x = x ^ y;
13        x ^= y;
14               
15        x = x | (y | z);
16    x |= y | z;
17       
18        x = x & (y & z);
19        x &= y & z;
20       
21        x =  x ^ (y ^ z);
22        x ^=  y ^ z;
23
24}
Note: See TracBrowser for help on using the repository browser.