1 // Show that llvm-cxxfilt --quote adds quotes around demangled symbols, unless
2 // the symbol is already quoted.
6 RUN: llvm-cxxfilt --quote < %t/symbols-in-file.test | FileCheck --match-full-lines --check-prefix=CHECK-FILE %s
7 CHECK-FILE: "bar()" "bar()"
8 CHECK-FILE-NEXT: "bar()" "bar()"
10 CHECK-FILE: "import thunk for std::future<void>"
12 // Check it works with CLI symbols too. Since a quoted mangled name is not a
13 // mangled name, it should be unchanged.
14 RUN: llvm-cxxfilt --quote _Z3firv '"_Z3barv"' 'saw()' | FileCheck --match-full-lines --check-prefix=CHECK-CLI %s
16 CHECK-CLI-NEXT: "_Z3barv"
19 //--- symbols-in-file.test
22 // This is not mangled, thus it should not be quoted.
24 // Check that an "import thunk for" prefix can be quoted along the demangled