Debian Codegraph @

clang-tools-extra/include-cleaner/test/nocrash.cpp

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