diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2015-01-18 16:23:48 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2015-01-18 16:23:48 +0000 |
commit | 06d4ba388873e6d1cfa9cd715a8935ecc8cd2097 (patch) | |
tree | 3eb853da77d46cc77c4b017525a422f9ddb1385b /test/Modules/Inputs/PR20399/vector | |
parent | 30d791273d07fac9c0c1641a0731191bca6e8606 (diff) | |
download | src-06d4ba388873e6d1cfa9cd715a8935ecc8cd2097.tar.gz src-06d4ba388873e6d1cfa9cd715a8935ecc8cd2097.zip |
Notes
Diffstat (limited to 'test/Modules/Inputs/PR20399/vector')
-rw-r--r-- | test/Modules/Inputs/PR20399/vector | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/test/Modules/Inputs/PR20399/vector b/test/Modules/Inputs/PR20399/vector new file mode 100644 index 000000000000..1e1b6705f51b --- /dev/null +++ b/test/Modules/Inputs/PR20399/vector @@ -0,0 +1,17 @@ +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 |