diff options
author | Michael Forney <mforney@mforney.org> | 2019-04-24 19:28:07 -0700 |
---|---|---|
committer | Michael Forney <mforney@mforney.org> | 2019-04-24 22:32:22 -0700 |
commit | 67c96568772bc0686e9a73e1d6490d9d982b53dd (patch) | |
tree | 28355193b8347f9581cae057c859049d979df956 /test/generic.c | |
parent | 11ba42eccc2bd0ce6d893b583a37dc0b46d09adf (diff) |
Implement _Generic selection
Diffstat (limited to 'test/generic.c')
-rw-r--r-- | test/generic.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/generic.c b/test/generic.c new file mode 100644 index 0000000..d04bc90 --- /dev/null +++ b/test/generic.c @@ -0,0 +1,6 @@ +int x = _Generic(123, + const int: 1, + unsigned: 2, + int: 3, + int *: 4 +); |