aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/validation/preprocessor
diff options
Diffstat (limited to 'validation/preprocessor')
-rw-r--r--validation/preprocessor/dynamic.c30
1 files changed, 30 insertions, 0 deletions
diff --git a/validation/preprocessor/dynamic.c b/validation/preprocessor/dynamic.c
new file mode 100644
index 00000000..3622be8d
--- /dev/null
+++ b/validation/preprocessor/dynamic.c
@@ -0,0 +1,30 @@
+#if defined(__LINE__)
+__LINE__
+#endif
+#if defined(__FILE__)
+__FILE__
+#endif
+#if defined(__DATE__)
+date
+#endif
+#if defined(__TIME__)
+time
+#endif
+#if defined(__COUNTER__)
+counter
+#endif
+
+/*
+ * check-name: dynamic-macros
+ * check-command: sparse -E $file
+ * check-known-to-fail
+ *
+ * check-output-start
+
+2
+"preprocessor/dynamic.c"
+date
+time
+counter
+ * check-output-end
+ */