summaryrefslogtreecommitdiff
path: root/test/LLVMC
diff options
context:
space:
mode:
authorMikhail Glushenkov <foldr@codedgers.com>2008-05-30 06:23:29 +0000
committerMikhail Glushenkov <foldr@codedgers.com>2008-05-30 06:23:29 +0000
commit34f376281f0bf013a6a0559193e17074e3d3647b (patch)
treebc4df5cf11071d55c8a498b544ce08858fef2a02 /test/LLVMC
parent6be4ffc7c3752702e06e3fbbeb7aaf4fe7023eff (diff)
downloadllvm-34f376281f0bf013a6a0559193e17074e3d3647b.tar.gz
llvm-34f376281f0bf013a6a0559193e17074e3d3647b.tar.bz2
llvm-34f376281f0bf013a6a0559193e17074e3d3647b.tar.xz
Fix: 'sink' handling was broken.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51750 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/LLVMC')
-rw-r--r--test/LLVMC/sink.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/LLVMC/sink.c b/test/LLVMC/sink.c
new file mode 100644
index 0000000000..d1dde41bb3
--- /dev/null
+++ b/test/LLVMC/sink.c
@@ -0,0 +1,12 @@
+/*
+ * Check that the 'sink' options work.
+ * RUN: llvmc2 -v -Wall %s -o %t |& grep "Wall"
+ * RUN: ./%t | grep hello
+ */
+
+#include <stdio.h>
+
+int main() {
+ printf("hello\n");
+ return 0;
+}