Changeset 164
- Timestamp:
- 10/14/07 05:30:14
- Files:
-
- guts_main/src/declarators3_neg.upc (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
guts_main/src/declarators3_neg.upc
r132 r164 34 34 #include <stdio.h> 35 35 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; 36 int foo(); 40 37 41 38 int main() … … 48 45 49 46 int a; 50 a = foo( b);47 a = foo(); 51 48 52 49 return 0; 53 50 } 54 51 55 int foo(shared int b){ 52 /* This function definition is not valid because of shared type declaration in function context */ 53 int foo(){ 54 shared int b; 56 55 return 0; 57 56 }
