summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--llvm/test/tools/llvm-cxxfilt/empty-line.test9
1 files changed, 9 insertions, 0 deletions
diff --git a/llvm/test/tools/llvm-cxxfilt/empty-line.test b/llvm/test/tools/llvm-cxxfilt/empty-line.test
new file mode 100644
index 00000000000..1b62ee0812f
--- /dev/null
+++ b/llvm/test/tools/llvm-cxxfilt/empty-line.test
@@ -0,0 +1,9 @@
+# Show that llvm-cxxfilt can handle empty lines in the input.
+RUN: echo "" > %t
+RUN: echo "_Z3foov" >> %t
+RUN: echo "" >> %t
+RUN: llvm-cxxfilt < %t | FileCheck %s
+
+CHECK: {{^$}}
+CHECK-NEXT: foo()
+CHECK-EMPTY:
OpenPOWER on IntegriCloud