bolt/deps/llvm-18.1.8/clang-tools-extra/include-cleaner/test/nocrash.cpp
2025-02-14 19:21:04 +01:00

8 lines
223 B
C++

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