diff options
| author | Rafael Espindola <rafael.espindola@gmail.com> | 2012-01-03 06:04:21 +0000 |
|---|---|---|
| committer | Rafael Espindola <rafael.espindola@gmail.com> | 2012-01-03 06:04:21 +0000 |
| commit | 0b0620776aad13d3668994a2a71f6a588283cca4 (patch) | |
| tree | e4469bce52a1838b5c6342264d73dff6d54caa2e /clang/test/CodeGenCXX/visibility.cpp | |
| parent | 3a5ff5cbd21e5f853a2f1c796090ffa9e364836e (diff) | |
| download | bcm5719-llvm-0b0620776aad13d3668994a2a71f6a588283cca4.tar.gz bcm5719-llvm-0b0620776aad13d3668994a2a71f6a588283cca4.zip | |
Process attributes in explicit template instatiation definitions. Fixes PR11690.
llvm-svn: 147441
Diffstat (limited to 'clang/test/CodeGenCXX/visibility.cpp')
| -rw-r--r-- | clang/test/CodeGenCXX/visibility.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/clang/test/CodeGenCXX/visibility.cpp b/clang/test/CodeGenCXX/visibility.cpp index cfa4f4fbcf2..54dacac9995 100644 --- a/clang/test/CodeGenCXX/visibility.cpp +++ b/clang/test/CodeGenCXX/visibility.cpp @@ -466,3 +466,13 @@ namespace PR10113 { // CHECK: define weak_odr void @_ZN7PR101133foo3barIcE3zedEv // CHECK-HIDDEN: define weak_odr void @_ZN7PR101133foo3barIcE3zedEv } + +namespace PR11690 { + template<class T> struct Class { + void size() const { + } + }; + template class DEFAULT Class<char>; + // CHECK: define weak_odr void @_ZNK7PR116905ClassIcE4sizeEv + // CHECK-HIDDEN: define weak_odr void @_ZNK7PR116905ClassIcE4sizeEv +} |

