summaryrefslogtreecommitdiffstats
path: root/test/CodeGenCXX/visibility-hidden-extern-templates.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2011-02-01 00:37:17 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2011-02-01 00:37:17 +0000
commit517ebc6e13c41dc9115bc0eece93f6fc1155743e (patch)
tree151d4ab7d6e4f023a8361104082e2da8b2339542 /test/CodeGenCXX/visibility-hidden-extern-templates.cpp
parent86c05f3f28bcf07c97dfb1881686fc43be2f47c2 (diff)
Set visibility for available_externally globals. This is important for two reasons:
* llvm-link would complains about mismatched visibility * If we produce a relocation with an available_externally, it is good to know that it is hidden. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@124633 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGenCXX/visibility-hidden-extern-templates.cpp')
-rw-r--r--test/CodeGenCXX/visibility-hidden-extern-templates.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/CodeGenCXX/visibility-hidden-extern-templates.cpp b/test/CodeGenCXX/visibility-hidden-extern-templates.cpp
index 7629b77c2c..eb87ff1567 100644
--- a/test/CodeGenCXX/visibility-hidden-extern-templates.cpp
+++ b/test/CodeGenCXX/visibility-hidden-extern-templates.cpp
@@ -20,7 +20,7 @@ void test_X(X<int> xi, X<char> xc) {
xi.g();
// CHECK: declare void @_ZN1XIcE1fEv
xc.f();
- // CHECK: define available_externally void @_ZN1XIcE1gEv
+ // CHECK: define available_externally hidden void @_ZN1XIcE1gEv
xc.g();
}