aboutsummaryrefslogtreecommitdiffstats
path: root/test/clightgen/annotations.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/clightgen/annotations.c')
-rw-r--r--test/clightgen/annotations.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/clightgen/annotations.c b/test/clightgen/annotations.c
new file mode 100644
index 00000000..56fc1700
--- /dev/null
+++ b/test/clightgen/annotations.c
@@ -0,0 +1,6 @@
+int f(int x, long y)
+{
+ __builtin_ais_annot("x is %e1, y is %e2", x, y);
+ __builtin_annot("x is %1, y is %2", x, y);
+ return __builtin_annot_intval("x was here: %1", x);
+}