9 lines · cpp
1// RUN: clang-include-cleaner %s --2 3namespace std {4class Foo {};5bool operator==(Foo, int) { return false; }6}7// no crash on a reference to a non-identifier symbol (operator ==).8bool s = std::operator==(std::Foo(), 1);9 1// RUN: clang-include-cleaner %s --2 3namespace std {4class Foo {};5bool operator==(Foo, int) { return false; }6}7// no crash on a reference to a non-identifier symbol (operator ==).8bool s = std::operator==(std::Foo(), 1);9