summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/cxx1y-variable-templates_top_level.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2013-09-18 02:10:12 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2013-09-18 02:10:12 +0000
commitef985ac91c0752dd6515a422778e056064cee9de (patch)
treeac900c7f4945aff93adbbdca5b041756435643c2 /clang/test/SemaCXX/cxx1y-variable-templates_top_level.cpp
parent1d24af872df47c0baad9cc291a05575c2e4947d5 (diff)
downloadbcm5719-llvm-ef985ac91c0752dd6515a422778e056064cee9de.tar.gz
bcm5719-llvm-ef985ac91c0752dd6515a422778e056064cee9de.zip
Fix accepts-invalid if a variable template explicit instantiation is missing an
argument list, but could be instantiated with argument list of <>. llvm-svn: 190913
Diffstat (limited to 'clang/test/SemaCXX/cxx1y-variable-templates_top_level.cpp')
-rw-r--r--clang/test/SemaCXX/cxx1y-variable-templates_top_level.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/clang/test/SemaCXX/cxx1y-variable-templates_top_level.cpp b/clang/test/SemaCXX/cxx1y-variable-templates_top_level.cpp
index 49be0bdcbe2..c98400cd878 100644
--- a/clang/test/SemaCXX/cxx1y-variable-templates_top_level.cpp
+++ b/clang/test/SemaCXX/cxx1y-variable-templates_top_level.cpp
@@ -168,7 +168,10 @@ namespace explicit_instantiation {
template int var<int>;
}
#endif
-
+
+ template<typename=int> int missing_args; // expected-note {{here}}
+ template int missing_args; // expected-error {{must specify a template argument list}}
+
namespace extern_var {
// TODO:
}
OpenPOWER on IntegriCloud