source: CIVL/examples/languageFeatures/compoundInit2.c

main
Last change on this file was 8ed8eba, checked in by Stephen Siegel <siegel@…>, 3 years ago

Adding new compound initializer tests. Looking into a failing test concerning printing domains.

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

  • Property mode set to 100644
File size: 134 bytes
Line 
1#include <assert.h>
2struct Node {
3 int x, y;
4};
5int main() {
6 struct Node node = { 1 };
7 assert(node.x==1);
8 assert(node.y==0);
9}
Note: See TracBrowser for help on using the repository browser.