summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/execute/20001011-1.c
blob: ffdcb9f52fe719c174f5609b9cf1143d8177bf7b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
extern void abort(void);
extern int strcmp(const char *, const char *);

int foo(const char *a)
{
    return strcmp(a, "main");
}

int main(void)
{
    if(foo(__FUNCTION__))
        abort();
    return 0;
}