summaryrefslogtreecommitdiff
path: root/test/LLVMC/C/emit-llvm-opt.c
blob: 50710cf9dba2876ac39733128e278b1ef029066f (plain)
1
2
3
4
5
6
7
8
9
// Check that -emit-llvm [-S] works with -opt.

// 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) {
}