parent
9838bfa79f
commit
de4a33167d
|
@ -289,13 +289,13 @@ private:
|
||||||
void cpp11init3() {
|
void cpp11init3() {
|
||||||
check("struct A { void operator()(int); };\n"
|
check("struct A { void operator()(int); };\n"
|
||||||
"void f() {\n"
|
"void f() {\n"
|
||||||
"A{}(0);\n"
|
"A{}(0);\n"
|
||||||
"}\n");
|
"}\n");
|
||||||
ASSERT_EQUALS("", errout.str());
|
ASSERT_EQUALS("", errout.str());
|
||||||
|
|
||||||
check("template<class> struct A { void operator()(int); };\n"
|
check("template<class> struct A { void operator()(int); };\n"
|
||||||
"void f() {\n"
|
"void f() {\n"
|
||||||
"A<int>{}(0);\n"
|
"A<int>{}(0);\n"
|
||||||
"}\n");
|
"}\n");
|
||||||
ASSERT_EQUALS("", errout.str());
|
ASSERT_EQUALS("", errout.str());
|
||||||
}
|
}
|
||||||
|
|
|
@ -7662,7 +7662,7 @@ private:
|
||||||
"template <bool> using c = int;\n"
|
"template <bool> using c = int;\n"
|
||||||
"template <bool b> c<b> d;\n"
|
"template <bool b> c<b> d;\n"
|
||||||
"template <> struct a<int> {\n"
|
"template <> struct a<int> {\n"
|
||||||
"template <typename e> constexpr auto g() { d<0 || e::f>; return 0; }\n"
|
"template <typename e> constexpr auto g() { d<0 || e::f>; return 0; }\n"
|
||||||
"};\n"))
|
"};\n"))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue