source: CIVL/examples/languageFeatures/arrayArrow.c

main
Last change on this file was 6ae12a5, checked in by Stephen Siegel <siegel@…>, 17 months ago

Fixed bug involving array and arrow operator a->f. The standard conversions were not being performed on a, as they should be.

git-svn-id: svn://vsl.cis.udel.edu/civl/trunk@5943 fb995dde-84ed-4084-dfe6-e5aef3e2452c

  • Property mode set to 100644
File size: 102 bytes
RevLine 
[6ae12a5]1#include <assert.h>
2struct S {
3 int a;
4} ops[1];
5int main(void) {
6 ops->a=1;
7 assert(ops->a==1);
8}
Note: See TracBrowser for help on using the repository browser.