summaryrefslogtreecommitdiff
path: root/test/lld/init.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/lld/init.c')
-rw-r--r--test/lld/init.c14
1 files changed, 3 insertions, 11 deletions
diff --git a/test/lld/init.c b/test/lld/init.c
index 3a9311e3c..d59f70e1e 100644
--- a/test/lld/init.c
+++ b/test/lld/init.c
@@ -1,15 +1,7 @@
volatile int x, y;
-__attribute__((constructor))
-void init_x() {
- x = 14;
-}
+__attribute__((constructor)) void init_x() { x = 14; }
-__attribute__((constructor))
-void init_y() {
- y = 144;
-}
+__attribute__((constructor)) void init_y() { y = 144; }
-int main() {
- return x + y;
-}
+int main() { return x + y; }