case inspired by a stackoverflow question.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@185772
91177308-0d34-0410-b5e6-
96231b3b80d8
};
}
-// FIXME: This may not be p6 in C++1y; N3638 isn't very clear whether paragraphs
-// were added. It might be p8?
-
int i;
int &&f();
(*e)() -> void,
#endif
f = 0.0;
+
+#if __has_feature(cxx_decltype)
+ auto g = 0ull, h = decltype(g)(0);
+#endif
+}
+
+template<typename T> void h() {
+ auto a = T(), *b = &a;
+#if __has_feature(cxx_decltype)
+ auto c = T(), d = decltype(c)(0);
+#endif
}
+template void h<int>();
+template void h<unsigned long>();