Legend:
- Unmodified
- Added
- Removed
-
doc/theses/mike_brooks_MMath/programs/bkgd-carray-decay.c
r79ec8c3 rf2b74e3 10 10 assert( sizeof(pa0x) != sizeof(ar) ); 11 11 12 void f( float x[10], float * y) {12 void f( @float x[10]@, @float * y@ ) { 13 13 static_assert( sizeof(x) == sizeof(void *) ); 14 14 static_assert( sizeof(y) == sizeof(void *) ); … … 16 16 f( 0, 0 ); 17 17 18 // reusing local var `float a[10];`}18 // reusing local variable float ar[10] 19 19 float v; 20 20 f( ar, ar ); $\C{// ok: two decays, one into an array spelling}$
Note:
See TracChangeset
for help on using the changeset viewer.