summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/decl-microsoft-call-conv.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2013-12-01 16:54:29 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2013-12-01 16:54:29 +0000
commit6edca7d9bde368cce0633cf0315735cfa46eccbe (patch)
treecef36df2ab2f0f1b7b8465d868537143fb68cb89 /clang/test/SemaCXX/decl-microsoft-call-conv.cpp
parent2dece5747a0f7bd711a5d8fa93b613351f7b6e07 (diff)
downloadbcm5719-llvm-6edca7d9bde368cce0633cf0315735cfa46eccbe.tar.gz
bcm5719-llvm-6edca7d9bde368cce0633cf0315735cfa46eccbe.zip
Handle CC and NoReturn when instantiating members of class templates.
Before we were considering them only when instantiating templates. This fixes pr18033. llvm-svn: 196050
Diffstat (limited to 'clang/test/SemaCXX/decl-microsoft-call-conv.cpp')
-rw-r--r--clang/test/SemaCXX/decl-microsoft-call-conv.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/clang/test/SemaCXX/decl-microsoft-call-conv.cpp b/clang/test/SemaCXX/decl-microsoft-call-conv.cpp
index a1a6d0b2895..9f1463245ba 100644
--- a/clang/test/SemaCXX/decl-microsoft-call-conv.cpp
+++ b/clang/test/SemaCXX/decl-microsoft-call-conv.cpp
@@ -183,3 +183,11 @@ namespace test4 {
};
extern template void foo::bar(const void *);
}
+
+namespace test5 {
+ template <class T>
+ class valarray {
+ void bar();
+ };
+ extern template void valarray<int>::bar();
+}
OpenPOWER on IntegriCloud