1// Copyright (c) 2013 Google Inc. All rights reserved. 2// Use of this source code is governed by a BSD-style license that can be 3// found in the LICENSE file. 4 5static void the_static_function() {} 6__attribute__((used)) void the_used_function() {} 7 8__attribute__((visibility("hidden"))) __attribute__((used)) 9void the_hidden_function() {} 10__attribute__((visibility("default"))) __attribute__((used)) 11void the_visible_function() {} 12 13void the_function() {} 14 15extern const int eci; 16__attribute__((used)) int i; 17__attribute__((used)) const int ci = 34623; 18 19int main() { 20 the_function(); 21 the_static_function(); 22 the_used_function(); 23 the_hidden_function(); 24 the_visible_function(); 25} 26