diff options
Diffstat (limited to 'test/LLVMC/C/emit-llvm-opt.c')
-rw-r--r-- | test/LLVMC/C/emit-llvm-opt.c | 9 |
1 files changed, 9 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 0000000..50710cf --- /dev/null +++ b/test/LLVMC/C/emit-llvm-opt.c @@ -0,0 +1,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) { +} |