1 RUN: dsymutil -oso-prepend-path %p/../Inputs %p/../Inputs/private/tmp/templated_operators/template_operators -o %t.apple.dSYM
3 RUN: llvm-dwarfdump -apple-names %t.apple.dSYM | FileCheck %s -check-prefix=NAMES
5 The test was compiled from a single source:
6 $ cat template_operators.cpp
8 bool operator<(const T&, const T&){
13 bool operator>(const T&, const T&){
18 bool operator<<(const T&, const T&){
23 bool operator>>(const T&, const T&){
28 bool operator==(const T&, const T&){
37 bool operator<=>(const T&,const T&){ return true;}
45 return b1 < b2 && b1 > b2 && b1 << b2 && b1 >> b2 && b1 == b2 && d1 <=> d2;
47 $ clang++ -std=c++2a -g template_operators.cpp -c -o template_operators.o
48 $ clang template_operators.o -o template_operators
51 NAMES-DAG: "operator<"
52 NAMES-DAG: "operator<<B>"
53 NAMES-DAG: "operator>"
54 NAMES-DAG: "operator><B>"
55 NAMES-DAG: "operator<<"
56 NAMES-DAG: "operator<<<B>"
57 NAMES-DAG: "operator>>"
58 NAMES-DAG: "operator>><B>"
59 NAMES-DAG: "operator<=>"
60 NAMES-DAG: "operator<=><D>"
61 NAMES-DAG: "operator=="
62 NAMES-DAG: "operator==<B>"