source: CIVL/examples/languageFeatures/compoundInit4.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: 199 bytes
Line 
1#include <assert.h>
2union Node {
3 union {
4 int a;
5 union {
6 int b;
7 union {
8 int c;
9 int d;
10 };
11 };
12 };
13};
14int main() {
15 union Node node = { .d=1 };
16 assert(node.d==1);
17}
Note: See TracBrowser for help on using the repository browser.