OLD | NEW |
1 // Copyright (c) 2011 Google Inc. All rights reserved. | 1 // Copyright (c) 2011 Google Inc. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 static void the_static_function() {} | 5 static void the_static_function() {} |
| 6 __attribute__((used)) void the_used_function() {} |
| 7 |
| 8 __attribute__((visibility("hidden"))) __attribute__((used)) |
| 9 void the_hidden_function() {} |
| 10 __attribute__((visibility("default"))) __attribute__((used)) |
| 11 void the_visible_function() {} |
6 | 12 |
7 void the_function() { | 13 void the_function() { |
8 the_static_function(); | 14 the_static_function(); |
| 15 the_used_function(); |
| 16 the_hidden_function(); |
| 17 the_visible_function(); |
9 } | 18 } |
OLD | NEW |