Skip to content
Snippets Groups Projects
Commit 732277ac authored by Richard Smith's avatar Richard Smith
Browse files

Rename test to match C++1y paragraph number per N3690, and add additional test

case inspired by a stackoverflow question.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@185772 91177308-0d34-0410-b5e6-96231b3b80d8
parent 251330d5
No related branches found
No related tags found
No related merge requests found
...@@ -8,9 +8,6 @@ namespace std { ...@@ -8,9 +8,6 @@ namespace std {
}; };
} }
// 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 i;
int &&f(); int &&f();
......
...@@ -29,4 +29,17 @@ void g() { ...@@ -29,4 +29,17 @@ void g() {
(*e)() -> void, (*e)() -> void,
#endif #endif
f = 0.0; 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>();
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment