search for: littlelist2

Displaying 2 results from an estimated 2 matches for "littlelist2".

Did you mean: littlelist1
2010 Jun 16
3
[LLVMdev] Strange pointer aliasing behaviour
...ge pointer aliasing "bug". Here is a test case : /* SOURCE CODE */ #define little_list_size 8 class LittleList1 { public: int _length; double _data[ little_list_size ]; LittleList1( int length ) { _length = length; for( int i=0; i<length; i++ ) _data[i] = 0; } }; class LittleList2 { public: int _length; double _data[ little_list_size ]; LittleList2( int length ) { _length = length; for( int i=0; i<_length; i++ ) _data[i] = 0; } }; int func1() { LittleList1 l(4); return l._length; } int func2() { LittleList2 l(4); return l._length; } /* END SOURCE CODE...
2010 Jun 17
0
[LLVMdev] Strange pointer aliasing behaviour
...       int     _length; >        double  _data[ little_list_size ]; > >        LittleList1( int length ) >        { >                _length = length; >                for( int i=0; i<length; i++ ) >                        _data[i] = 0; >        } > }; > > class LittleList2 { > public: >        int     _length; >        double  _data[ little_list_size ]; > >        LittleList2( int length ) >        { >                _length = length; >                for( int i=0; i<_length; i++ ) >                        _data[i] = 0; >        } &gt...