aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/validation/backend
diff options
authorPekka Enberg <penberg@kernel.org>2011-08-29 17:20:54 +0300
committerPekka Enberg <penberg@kernel.org>2011-08-29 17:20:54 +0300
commitdeb11bd4ee6ed46bce6a5e35a69ada519d81a0a8 (patch)
treecbff888ea5f1100bdc1418a32ff05339a0dac0e1 /validation/backend
parentd2e0456f710a4b834afdd0db7e871befebf812b4 (diff)
downloadsparse-dev-deb11bd4ee6ed46bce6a5e35a69ada519d81a0a8.tar.gz
sparse, llvm: Code generation for string constants
Signed-off-by: Pekka Enberg <penberg@kernel.org>
Diffstat (limited to 'validation/backend')
-rw-r--r--validation/backend/hello.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/validation/backend/hello.c b/validation/backend/hello.c
new file mode 100644
index 00000000..79905004
--- /dev/null
+++ b/validation/backend/hello.c
@@ -0,0 +1,13 @@
+#include <stdio.h>
+
+int main(int argc, char *argv[])
+{
+ puts("hello, world");
+
+ return 0;
+}
+
+/*
+ * check-name: 'hello, world' code generation
+ * check-command: ./sparsec -c $file -o tmp.o
+ */