Ticket #22 (defect)

Opened 1 year ago

Last modified 1 year ago

declarators2_neg has syntax error

Status: closed (invalid)

Reported by: gary Assigned to: apokayi
Priority: major Milestone:
Component: component1 Version: 1.0
Keywords: guts Cc:

Although, the declarators2_neg test is intended to be a negative test, the syntax error shown below is likely unintentional:

-------------->      Working on unit -- declarators2_neg\n
declarators2_neg.upc:40: error: syntax error before '[' token
Compilation was UNSUCCESSFUL for the negative unit [declarators2_neg]
Note that this is the EXPECTED result since the unit is negative
The unit will not be run!!!
TEST PASSED for the unit [declarators2_neg]

The offending lines are:

 36 #define BLOCK1          5
 37 #define BLOCK2          3
 38  
 39 typedef shared[BLOCK1] int sh_int_with_block;
 40 sh_int_with_block[BLOCK2]       a;      
 41 
 42 
 43 int main()
 44 {
 45         /*
 46          * To check that the declaration specifiers in declarations cannot
 47          * include, either directly or indirectly, more than one block size
 48          * compiler must report an ERROR here !!!
 49          */
 50 
 51         return 0;
 52 }

Change History

09/10/07 23:52:16: Modified by sbahra

  • owner changed from somebody to apokayi.

10/14/07 05:24:24: Modified by apokayi

  • status changed from new to closed.
  • resolution set to invalid.

same as ticket #21