Files
clang-p2996/clang/test/Modules/Inputs/PR27739/map
Vassil Vassilev 8ffe3be8be [modules] Ask the canonical decl whether the constructor was defaulted.
In case of template instantiations query the template instantiation pattern,
which had actually '=default'.

Fixes https://llvm.org/bugs/show_bug.cgi?id=27739

Patch reviewed by Richard Smith.

llvm-svn: 270553
2016-05-24 12:10:36 +00:00

21 lines
424 B
Plaintext

#ifndef _GLIBCXX_MAP
#define _GLIBCXX_MAP
struct basic_string {
basic_string(char *);
} typedef string;
template <typename> class D;
template <typename _Elements> struct D {
_Elements _M_;
D(D &) = default;
};
template <typename _Elements> D<_Elements &&> forward_as_tuple(_Elements);
template <typename _Key, typename _Tp> struct map {
_Tp operator[](_Key p1) {
auto b = &forward_as_tuple(p1);
}
};
#endif