summaryrefslogtreecommitdiffstats
path: root/llvm/unittests/tools/llvm-exegesis/X86/SnippetFileTest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/unittests/tools/llvm-exegesis/X86/SnippetFileTest.cpp')
-rw-r--r--llvm/unittests/tools/llvm-exegesis/X86/SnippetFileTest.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/unittests/tools/llvm-exegesis/X86/SnippetFileTest.cpp b/llvm/unittests/tools/llvm-exegesis/X86/SnippetFileTest.cpp
index 04ba51cef27..da3974775be 100644
--- a/llvm/unittests/tools/llvm-exegesis/X86/SnippetFileTest.cpp
+++ b/llvm/unittests/tools/llvm-exegesis/X86/SnippetFileTest.cpp
@@ -115,6 +115,13 @@ TEST_F(X86SnippetFileTest, MissingParam) {
consumeError(std::move(Error));
}
+TEST_F(X86SnippetFileTest, NoAsmStreamer) {
+ auto Snippets = TestCommon(R"(
+ .cv_fpo_proc foo 4
+ )");
+ EXPECT_FALSE((bool)Snippets.takeError());
+}
+
} // namespace
} // namespace exegesis
} // namespace llvm
OpenPOWER on IntegriCloud