Silence -Wunused-variable in release builds.
[llvm/stm8.git] / test / LLVMC / C / emit-llvm-opt.c
blob50710cf9dba2876ac39733128e278b1ef029066f
1 // Check that -emit-llvm [-S] works with -opt.
3 // RUN: llvmc -c -opt -emit-llvm -o - %s | llvm-dis | grep "@f0()" | count 1
4 // RUN: llvmc -c -opt -emit-llvm -S -o - %s | grep "@f0()" | count 1
5 // RUN: llvmc --dry-run -c -opt -emit-llvm %s |& grep "^opt"
6 // XFAIL: vg_leak
8 int f0(void) {