summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/Generic/opt-codegen-no-target-machine.ll
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/CodeGen/Generic/opt-codegen-no-target-machine.ll')
-rw-r--r--llvm/test/CodeGen/Generic/opt-codegen-no-target-machine.ll3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/Generic/opt-codegen-no-target-machine.ll b/llvm/test/CodeGen/Generic/opt-codegen-no-target-machine.ll
new file mode 100644
index 00000000000..c6cb1c2b657
--- /dev/null
+++ b/llvm/test/CodeGen/Generic/opt-codegen-no-target-machine.ll
@@ -0,0 +1,3 @@
+; RUN: not opt %s -dwarfehprepare -o - 2>&1 | FileCheck %s
+
+; CHECK: Trying to construct TargetPassConfig without a target machine. Scheduling a CodeGen pass without a target triple set?
OpenPOWER on IntegriCloud