diff options
Diffstat (limited to 'Tests/Visibility')
-rw-r--r-- | Tests/Visibility/bar.c | 4 | ||||
-rw-r--r-- | Tests/Visibility/foo.cpp | 6 | ||||
-rw-r--r-- | Tests/Visibility/hidden.c | 11 | ||||
-rw-r--r-- | Tests/Visibility/shared.c | 5 |
4 files changed, 18 insertions, 8 deletions
diff --git a/Tests/Visibility/bar.c b/Tests/Visibility/bar.c index e425999..b72a1a5 100644 --- a/Tests/Visibility/bar.c +++ b/Tests/Visibility/bar.c @@ -1 +1,3 @@ -void bar() {} +void bar() +{ +} diff --git a/Tests/Visibility/foo.cpp b/Tests/Visibility/foo.cpp index 2b66b69..8373fd2 100644 --- a/Tests/Visibility/foo.cpp +++ b/Tests/Visibility/foo.cpp @@ -1,11 +1,11 @@ class Foo { public: - void bar() {} + void bar() {} }; void baz() { - Foo foo; - foo.bar(); + Foo foo; + foo.bar(); } diff --git a/Tests/Visibility/hidden.c b/Tests/Visibility/hidden.c index 6e97343..12f071f 100644 --- a/Tests/Visibility/hidden.c +++ b/Tests/Visibility/hidden.c @@ -1,4 +1,9 @@ -int hidden_function(void) { return 0; } +int hidden_function(void) +{ + return 0; +} -__attribute__((visibility("default"))) -int not_hidden(void) { return hidden_function(); } +__attribute__((visibility("default"))) int not_hidden(void) +{ + return hidden_function(); +} diff --git a/Tests/Visibility/shared.c b/Tests/Visibility/shared.c index bb94976..7a07939 100644 --- a/Tests/Visibility/shared.c +++ b/Tests/Visibility/shared.c @@ -1,3 +1,6 @@ extern int not_hidden(void); -int shared(void) { return not_hidden(); } +int shared(void) +{ + return not_hidden(); +} |