------- Comment #55 from steven at gcc dot gnu dot org 2008-12-10 21:27 ------- // This is the test case from PR38453. // See comment #0 of that bug for further information: // http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38453#c0
typedef struct { int lc; int pb; } bar; void foo(bar *propsRes, const unsigned char *propsData) { unsigned char prop0; prop0 = propsData[0]; while (prop0 >= 45) { propsRes->pb++; prop0-=45; } propsRes->lc = prop0; } int main(int argc, char **argv) { bar propsRes; unsigned char propsData[1024]; foo(&propsRes, propsData); } -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32044