Files
clang-p2996/clang/test/Modules/Inputs/PR20399/vector
David Blaikie e50bd2b21c Reduce the PR20399 test case.
I couldn't get something /really/ obvious, and I imagine Richard Smith
might be able to provide some text explaining the sequence of steps
that's demonstrated by these files - but at least it's a bit simpler
now.

llvm-svn: 218840
2014-10-01 23:16:30 +00:00

18 lines
364 B
Plaintext

namespace std {
template <typename _Tp, typename _Alloc = int>
struct vector {
static void func() { vector *i, *j; i - j; }
};
struct bit_iterator { ~bit_iterator() {} };
inline void operator-(int __x, const bit_iterator &__y) {
}
template <typename _Alloc>
struct vector<bool, _Alloc> : bit_iterator {
typedef bit_iterator iterator;
};
} // namespace std