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"