summaryrefslogblamecommitdiff
path: root/test/test1.c
blob: 7951def243bee3bbf1235e55d6ff027a586796b6 (plain) (tree)
1
2
3
4
5
6
7
8
9



                               
                                                                             



                    
                

























                                              
#define MAX123 10
int fun1(const int x,int*** y);
int c=1;

void func3(int *ptr) __attribute__((nonnull (1))) __attribute__ ((noreturn));

void func3(int *ptr)
{
    *ptr=10;
    while(true);
}

int main()
{
	fun1(1,(int***)2);
        func3(0);
	return 1;
}
void fun(int a , int b)
{
	if (a==0)
		a=(a+b)*c;
	else
		b=1;

}
int fun1(const int x,int*** y)
{
	int a=0;int b=1;
	c=b;
	fun(0,1);
	if(a==0)
		return a+b;
	else return MAX123;
}
long fun2(const char* zz) { return (long)zz; }