aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/validation
diff options
Diffstat (limited to 'validation')
-rw-r--r--validation/expand/function-pointer.c23
1 files changed, 23 insertions, 0 deletions
diff --git a/validation/expand/function-pointer.c b/validation/expand/function-pointer.c
new file mode 100644
index 00000000..45aace16
--- /dev/null
+++ b/validation/expand/function-pointer.c
@@ -0,0 +1,23 @@
+struct s {
+ int (*fun)(void);
+};
+
+inline struct s *inl(struct s *p)
+{
+ 1 + 0;
+ return p;
+}
+
+static void tst(struct s *s)
+{
+ inl(s)->fun();
+}
+
+/*
+ * check-name: function-pointer
+ * check-command: test-linearize -fdump-ir $file
+ * check-known-to-fail
+ *
+ * check-output-ignore
+ * check-output-excludes: add\\.32.*\\$1, \\$0
+ */