Software: Apache. PHP/5.4.45 

uname -a: Linux webm056.cluster010.gra.hosting.ovh.net 5.15.167-ovh-vps-grsec-zfs-classid #1 SMP Tue
Sep 17 08:14:20 UTC 2024 x86_64
 

uid=243112(mycochar) gid=100(users) groups=100(users)  

Safe-mode: OFF (not secure)

/home/mycochar/www/image/photo/gcc-12.3.0/gcc/testsuite/gcc.dg/   drwxr-xr-x
Free 0 B of 0 B (0%)
Your ip: 216.73.216.77 - Server ip: 213.186.33.19
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    

[Enumerate]    [Encoder]    [Tools]    [Proc.]    [FTP Brute]    [Sec.]    [SQL]    [PHP-Code]    [Backdoor Host]    [Back-Connection]    [milw0rm it!]    [PHP-Proxy]    [Self remove]
    


Viewing file:     redecl-1.c (3.12 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
/* Test for various situations where a new declaration of an
   identifier conflicts with an earlier declaration which isn't in the
   same scope.  These are all undefined behavior per C89 sections
   6.1.2.2p7, 6.1.2.6p2, and 6.3.2.2p2/footnote 38 (C99 6.2.2p7 and
   6.2.7p2 - implicit declarations are invalid in C99).  */

/* { dg-do compile } */
/* { dg-options "-std=c89 -pedantic -Wall -Wno-unused" } */

/* Extern at function scope, clashing with extern at file scope */

extern int foo1;        /* { dg-message "note: previous" } */
extern int bar1(int);        /* { dg-message "note: previous" } */

void test1(void)
{
  extern double foo1;        /* { dg-error "conflict" } */
  extern double bar1(double);    /* { dg-error "conflict" } */
}

/* Extern at file scope, clashing with extern at function scope */

void test2(void)
{
  extern double foo2;        /* { dg-message "note: previous" } */
  extern double bar2(double);    /* { dg-message "note: previous" } */
}

extern int foo2;        /* { dg-error "conflict" } */
extern int bar2(int);        /* { dg-error "conflict" } */

/* Extern at function scope, clashing with extern at earlier function
   scope.  Also, don't be fooled by a typedef at file scope.  */

typedef float baz3;        /* { dg-bogus } */

void prime3(void)
{
  extern int foo3;        /* { dg-message "note: previous" } */
  extern int bar3(int);        /* { dg-message "note: previous" } */
  extern int baz3;        /* { dg-message "note: previous" } */
}

void test3(void)
{
  extern double foo3;        /* { dg-error "conflict" } */
  extern double bar3(double);    /* { dg-error "conflict" } */
  extern double baz3;        /* { dg-error "conflict" } */
}

/* Extern at function scope, clashing with previous implicit decl.  */

void prime4(void)
{
  bar4(); /* { dg-line implicit_bar4 } */
  /* { dg-warning "implicit declaration of function" "implicit" { target *-*-* } implicit_bar4 } */
}

void test4(void)
{
  extern double bar4(double);    /* { dg-error "conflict" } */
/* { dg-message "note: previous implicit declaration" "previous" { target *-*-* } implicit_bar4 } */
}

/* Implicit decl, clashing with extern at previous function scope.  */

void prime5(void)
{
  extern double bar5(double);    /* { dg-message "note: previous declaration" "previous 1" } */
} /* { dg-message "note: previous implicit declaration" "previous 2" { target *-*-* } .-1 } */

void test5(void)
{
  bar5(1);            /* { dg-warning "implicit declaration of function" } */
} /* { dg-error "incompatible implicit declaration" "" { target *-*-* } .-1 } */

/* Extern then static, both at file scope.  */

extern int test6(int);        /* { dg-message "note: previous" } */
static int test6(int x)        /* { dg-error "follows non-static" } */
{ return x; }


/* Extern then static, extern at previous function scope.  */

void prime7(void)
{
  extern int test7(int);    /* { dg-message "note: previous" } */
}

static int test7(int x)        /* { dg-error "follows non-static" } */
{ return x; }

/* Implicit decl then static.  */

void prime8(void)
{
  test8();            /* { dg-message "note: previous" } */
                                /* { dg-warning "implicit" "implicit" { target *-*-* } .-1 } */
}

static int test8(int x)        /* { dg-error "follows non-static" } */
{ return x; }

Enter:
 
Select:
 

Useful Commands
 
Warning. Kernel may be alerted using higher levels
Kernel Info:

Php Safe-Mode Bypass (Read Files)

File:

eg: /etc/passwd

Php Safe-Mode Bypass (List Directories):

Dir:

eg: /etc/

Search
  - regexp 

Upload
 
[ ok ]

Make Dir
 
[ ok ]
Make File
 
[ ok ]

Go Dir
 
Go File
 

--[ x2300 Locus7Shell v. 1.0a beta Modded by #!physx^ | www.LOCUS7S.com | Generation time: 0.0058 ]--