diff options
author | Shigeki Ohtsu <ohtsu@iij.ad.jp> | 2015-03-30 14:33:17 +0900 |
---|---|---|
committer | Shigeki Ohtsu <ohtsu@iij.ad.jp> | 2015-04-04 11:01:26 +0900 |
commit | 21f4fb62157567eb6e1eac08927d832c7b5b89dd (patch) | |
tree | a0f9f81df66f9ba9d2a925c6ce0d15954db57ffa /tools/gyp/test/mac/strip/main.c | |
parent | efadffe8616b895cd67fd270eadbd241d1069a47 (diff) | |
download | node-new-21f4fb62157567eb6e1eac08927d832c7b5b89dd.tar.gz |
deps: update gyp to e1c8fcf7
PR-URL: https://github.com/iojs/io.js/pull/1325
Reviewed-By: Fedor Indutny <fedor@indutny.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Diffstat (limited to 'tools/gyp/test/mac/strip/main.c')
-rw-r--r-- | tools/gyp/test/mac/strip/main.c | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/tools/gyp/test/mac/strip/main.c b/tools/gyp/test/mac/strip/main.c new file mode 100644 index 0000000000..b2291a6b09 --- /dev/null +++ b/tools/gyp/test/mac/strip/main.c @@ -0,0 +1,25 @@ +// Copyright (c) 2013 Google Inc. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +static void the_static_function() {} +__attribute__((used)) void the_used_function() {} + +__attribute__((visibility("hidden"))) __attribute__((used)) +void the_hidden_function() {} +__attribute__((visibility("default"))) __attribute__((used)) +void the_visible_function() {} + +void the_function() {} + +extern const int eci; +__attribute__((used)) int i; +__attribute__((used)) const int ci = 34623; + +int main() { + the_function(); + the_static_function(); + the_used_function(); + the_hidden_function(); + the_visible_function(); +} |