summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMikhail Glushenkov <foldr@codedgers.com>2010-09-22 09:00:41 +0000
committerMikhail Glushenkov <foldr@codedgers.com>2010-09-22 09:00:41 +0000
commit3724945025b3c09a0961575f6afc1e82210b5dcd (patch)
tree756befd53499d30cb41351af6c9720b81691a519 /test
parentc9aa78d4ce2fff86a897308cc103d74754657897 (diff)
downloadllvm-3724945025b3c09a0961575f6afc1e82210b5dcd.tar.gz
llvm-3724945025b3c09a0961575f6afc1e82210b5dcd.tar.bz2
llvm-3724945025b3c09a0961575f6afc1e82210b5dcd.tar.xz
llvmc: Support '-emit-llvm -S' with -opt.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114541 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/LLVMC/C/emit-llvm-opt.c7
-rw-r--r--test/LLVMC/C/emit-llvm.c1
2 files changed, 8 insertions, 0 deletions
diff --git a/test/LLVMC/C/emit-llvm-opt.c b/test/LLVMC/C/emit-llvm-opt.c
new file mode 100644
index 0000000000..ab670e98e9
--- /dev/null
+++ b/test/LLVMC/C/emit-llvm-opt.c
@@ -0,0 +1,7 @@
+// RUN: llvmc -c -opt -emit-llvm -o - %s | llvm-dis | grep "@f0()" | count 1
+// RUN: llvmc -c -opt -emit-llvm -S -o - %s | grep "@f0()" | count 1
+// RUN: llvmc --dry-run -c -opt -emit-llvm %s |& grep "^opt"
+// XFAIL: vg_leak
+
+int f0(void) {
+}
diff --git a/test/LLVMC/C/emit-llvm.c b/test/LLVMC/C/emit-llvm.c
index 9844bc757c..58ac17e151 100644
--- a/test/LLVMC/C/emit-llvm.c
+++ b/test/LLVMC/C/emit-llvm.c
@@ -1,4 +1,5 @@
// RUN: llvmc -c -emit-llvm -o - %s | llvm-dis | grep "@f0()" | count 1
+// RUN: llvmc -c -emit-llvm -S -o - %s | grep "@f0()" | count 1
// XFAIL: vg_leak
int f0(void) {