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:     pointer-array-atomic.c (3.5 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
/* { dg-do compile } */
/* { dg-options "-std=c11" } */
/* Origin: Martin Uecker <uecker@eecs.berkeley.edu> */
void tvoid(void* x);
void transpose0(double* out, _Atomic double* in) { }
void transpose1(double out[2][2], _Atomic double in[2][2]) { }
void transpose2(double out[2][2][2], _Atomic double in[2][2][2]) { }
// return
int (*x2(_Atomic int x[3][3]))[3] { return x; } /* { dg-warning "returning '_Atomic int \\(\\*\\)\\\[3\\\]' from a function with incompatible return type" } */
_Atomic int (*x3(int x[3][3]))[3] { return x; } /* { dg-warning "returning 'int \\(\\*\\)\\\[3\\\]' from a function with incompatible return type" } */
void test(void)
{
    double x0[2];
    double y0[2];
    _Atomic double z0[4];
    double x1[2][2];
    double y1[2][2];
    double o1[2][3];
    _Atomic double z1[2][2];
    double x2[2][2][2];
    double y2[2][2][2];
    double o2[2][2][3];
    _Atomic double z2[2][2][2];
    tvoid(z0);
    tvoid(z1);
    tvoid(z2);
    // passing as arguments
    transpose0(y0, x0); /* { dg-warning "passing argument 2 of 'transpose0' from incompatible pointer type" } */
    transpose1(y1, o1); /* { dg-warning "passing argument 2 of 'transpose1' from incompatible pointer type" } */
    transpose1(y1, x1); /* { dg-warning "passing argument 2 of 'transpose1' from incompatible pointer type" } */
    transpose2(y2, o2); /* { dg-warning "passing argument 2 of 'transpose2' from incompatible pointer type" } */
    transpose2(y2, x2); /* { dg-warning "passing argument 2 of 'transpose2' from incompatible pointer type" } */
    // initialization
    _Atomic double (*x0p) = x0; /* { dg-warning "initialization of '_Atomic double \\*' from incompatible pointer type" } */
    _Atomic double (*x1p)[2] = x1; /* { dg-warning "initialization of '_Atomic double \\(\\*\\)\\\[2\\\]' from incompatible pointer type" } */
    _Atomic double (*x2p)[2][2] = x2; /* { dg-warning "initialization of '_Atomic double \\(\\*\\)\\\[2\\\]\\\[2\\\]' from incompatible pointer type" } */
    // assignment
    x0p = x0; /* { dg-warning "assignment to '_Atomic double \\*' from incompatible pointer type" } */
    x1p = x1; /* { dg-warning "assignment to '_Atomic double \\(\\*\\)\\\[2\\\]' from incompatible pointer type" } */
    x2p = x2; /* { dg-warning "assignment to '_Atomic double \\(\\*\\)\\\[2\\\]\\\[2\\\]' from incompatible pointer type" } */
    // subtraction
    &(x0[1]) - &(z0[0]); /* { dg-error "invalid operands to binary" } */
    &(x1[1]) - &(z1[0]); /* { dg-error "invalid operands to binary" } */
    &(x2[1]) - &(z2[0]); /* { dg-error "invalid operands to binary" } */
    // comparison
    x0 == z0; /* { dg-warning "comparison of distinct pointer types lacks a cast" } */
    x1 == z1; /* { dg-warning "comparison of distinct pointer types lacks a cast" } */
    x2 == z2; /* { dg-warning "comparison of distinct pointer types lacks a cast" } */
    x0 > z0; /* { dg-warning "comparison of distinct pointer types lacks a cast" } */
    x1 > z1; /* { dg-warning "comparison of distinct pointer types lacks a cast" } */
    x2 > z2; /* { dg-warning "comparison of distinct pointer types lacks a cast" } */
    x0 < z0; /* { dg-warning "comparison of distinct pointer types lacks a cast" } */
    x1 < z1; /* { dg-warning "comparison of distinct pointer types lacks a cast" } */
    x2 < z2; /* { dg-warning "comparison of distinct pointer types lacks a cast" } */
    // conditional expressions
    (void)(1 ? x0 : z0); /* { dg-warning "pointer type mismatch in conditional expression" } */
    (void)(1 ? x1 : z1); /* { dg-warning "pointer type mismatch in conditional expression" } */
    (void)(1 ? x2 : z2); /* { dg-warning "pointer type mismatch in conditional expression" } */
}


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.0059 ]--