llvmc: Support '-emit-llvm -S' with -opt.
[oota-llvm.git] / test / LLVMC / C / emit-llvm-opt.c
1 // RUN: llvmc -c -opt -emit-llvm -o - %s | llvm-dis | grep "@f0()" | count 1
2 // RUN: llvmc -c -opt -emit-llvm -S -o - %s | grep "@f0()" | count 1
3 // RUN: llvmc --dry-run -c -opt -emit-llvm %s |& grep "^opt"
4 // XFAIL: vg_leak
5
6 int f0(void) {
7 }