blob: 7c0c337d3f163a4d4e547f63b105c514c3956032 [file] [log] [blame]
lh9ed821d2023-04-07 01:36:19 -07001#include <stdio.h>
2#include <stdlib.h>
3#include <unistd.h>
4
5void
6__attribute ((constructor))
7init (void)
8{
9 puts ("init DSO");
10
11 static char str[] = "SOMETHING_NOBODY_USES=something_else";
12 if (putenv (str) != 0)
13 {
14 puts ("putenv failed");
15 _exit (1);
16 }
17}