diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2013-01-08 14:58:32 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2013-01-08 14:58:32 +0000 |
commit | ef3c69406f73b892a3d5023ea42b3d7ed9c99d33 (patch) | |
tree | f83eef4af342d4e4f135eeed913d2b7d8e2f1e70 /test/SemaCXX/visibility.cpp | |
parent | 26f7e78018ed6ce8aa11b5eef94c772ca4ee48bf (diff) |
Clear the LV cache when setting the instantiated from link.
Fixes pr14835.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@171857 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/SemaCXX/visibility.cpp')
-rw-r--r-- | test/SemaCXX/visibility.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/SemaCXX/visibility.cpp b/test/SemaCXX/visibility.cpp new file mode 100644 index 0000000000..434b3c06c1 --- /dev/null +++ b/test/SemaCXX/visibility.cpp @@ -0,0 +1,12 @@ +// RUN: %clang_cc1 -fsyntax-only %s + +namespace test1 { + template <class C> + struct C2 + { + static int p __attribute__((visibility("hidden"))); + }; + int f() { + return C2<int>::p; + } +} |