Changeset 164

Show
Ignore:
Timestamp:
10/14/07 05:30:14
Author:
apokayi
Message:

semantic error is fixed

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • guts_main/src/declarators3_neg.upc

    r132 r164  
    3434#include <stdio.h> 
    3535 
    36 /* This function definition is not valid because of shared type declaration in function context */ 
    37 int foo(shared int a); 
    38  
    39 shared int b; 
     36int foo(); 
    4037 
    4138int main() 
     
    4845         
    4946        int a; 
    50         a = foo(b); 
     47        a = foo(); 
    5148 
    5249        return 0;   
    5350} 
    5451 
    55 int foo(shared int b){ 
     52/* This function definition is not valid because of shared type declaration in function context */ 
     53int foo(){ 
     54        shared int b; 
    5655        return 0; 
    5756}