aboutsummaryrefslogtreecommitdiffstats
path: root/meson/test cases/unit/2 testsetups/buggy.c
blob: d23883017bcea99d946093d4fe934014138349a7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include<stdio.h>
#include<stdlib.h>

#include<impl.h>

int main(int argc, char **argv) {
    char *ten = malloc(10);
    if(getenv("TEST_ENV")) {
        do_nasty(ten);
        printf("TEST_ENV is set.\n");
    }
    free(ten);
    return 0;
}