diff options
author | Hans Wennborg <hans@hanshq.net> | 2014-05-19 20:14:13 +0000 |
---|---|---|
committer | Hans Wennborg <hans@hanshq.net> | 2014-05-19 20:14:13 +0000 |
commit | 7f26fa67154187401a70efc06e140e7f090e5c3b (patch) | |
tree | 6c33c911c7c0b1c178cfc182d560a1547c2a7ec1 /clang/test/CodeGenCXX/dllimport.cpp | |
parent | dc9210276637bf67091ff8885f0c2c0e08fadbcb (diff) | |
download | bcm5719-llvm-7f26fa67154187401a70efc06e140e7f090e5c3b.tar.gz bcm5719-llvm-7f26fa67154187401a70efc06e140e7f090e5c3b.zip |
Allow dllimport on function definitions when they're template instantiations
llvm-svn: 209157
Diffstat (limited to 'clang/test/CodeGenCXX/dllimport.cpp')
-rw-r--r-- | clang/test/CodeGenCXX/dllimport.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/CodeGenCXX/dllimport.cpp b/clang/test/CodeGenCXX/dllimport.cpp index d8e58f71903..c4640c1af5d 100644 --- a/clang/test/CodeGenCXX/dllimport.cpp +++ b/clang/test/CodeGenCXX/dllimport.cpp @@ -8,7 +8,7 @@ void DLLIMPORT a(); inline void DLLIMPORT b() {} // CHECK-DAG: define available_externally dllimport void @"\01?b@@YAXXZ"() -template <typename T> inline void c() {} // FIXME: MSVC accepts this without 'inline' too. +template <typename T> void c() {} template void DLLIMPORT c<int>(); // CHECK-DAG: define available_externally dllimport void @"\01??$c@H@@YAXXZ"() |