aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/validation
diff options
Diffstat (limited to 'validation')
-rw-r--r--validation/restricted-typeof.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/validation/restricted-typeof.c b/validation/restricted-typeof.c
new file mode 100644
index 00000000..be77af8c
--- /dev/null
+++ b/validation/restricted-typeof.c
@@ -0,0 +1,4 @@
+typedef unsigned __attribute__((bitwise)) A;
+A x;
+__typeof__(x) y;
+A *p = &y;