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/g++.dg/cpp0x/   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:     auto9.C (4.11 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
// PR c++/37962
// Negative test for auto
// { dg-do compile { target c++11 } }

#include <typeinfo>
#include <stdarg.h>
#include <stddef.h>

int i = *(auto *) 0;                // { dg-error "auto" }
struct A *p = (auto *) 0;            // { dg-error "auto" }
int *q = static_cast <auto *>(0);        // { dg-error "auto" }
const int *r = const_cast <auto *>(q);        // { dg-error "auto" }
const std::type_info &t1 = typeid (auto);    // { dg-error "auto" }
const std::type_info &t2 = typeid (auto *);    // { dg-error "auto" }

struct A
{
  operator auto ();                // { dg-error "auto" "" { target { ! c++14 } } }
  operator auto *();                // { dg-error "auto" "" { target { ! c++14 } } }
};

struct A2
{
  operator auto () -> int;            // { dg-error "invalid use of|trailing return type" }
  operator auto*() -> int;            // { dg-error "invalid use of|trailing return type|cannot be overloaded" }
};

template <typename> struct B
{
  enum { e };
};

template <typename T> struct C
{
  C () : i () {}
  int i;
};

bool d = (auto (A::*)()) 0;            // { dg-error "auto" }

void
foo ()
{
  __extension__ (auto) { 0 };            // { dg-error "auto" }
  C<int> c;
  dynamic_cast<auto> (c);            // { dg-error "auto" }
  reinterpret_cast<auto> (c);            // { dg-error "auto" }
  int i = auto (0);                // { dg-error "auto" "" { target c++20_down } }
  auto p1 = new (auto);                // { dg-error "auto" }
  auto p2 = new (auto) (42);            // { dg-error "invalid use of|deduce" }
  offsetof (auto, fld);                // { dg-error "auto" }
  offsetof (auto *, fld);            // { dg-error "auto" }
  sizeof (auto);                // { dg-error "auto" }
  sizeof (auto *);                // { dg-error "auto" }
}

void
foo2 (void)
{
  __alignof__ (auto);                // { dg-error "auto" }
  __alignof__ (auto *);                // { dg-error "auto" }
  __typeof__ (auto) v1;                // { dg-error "auto" }
  __typeof__ (auto *) v2;            // { dg-error "auto" }
  __is_class (auto);                // { dg-error "auto|expected" }
  __is_pod (auto *);                // { dg-error "auto|expected" }
  __is_base_of (int, auto);            // { dg-error "auto|expected" }
  __is_base_of (auto, int);            // { dg-error "auto|expected" }
  __is_base_of (auto, auto *);            // { dg-error "auto|expected" }
}

B<auto> b;                    // { dg-error "auto|invalid" }
C<auto> c;                    // { dg-error "auto|invalid" }
C<auto *> c2;                    // { dg-error "auto|invalid" }

enum : auto { EE = 0 };                // { dg-error "must be an integral type" }
enum struct D : auto * { FF = 0 };        // { dg-error "must be an integral type|declar|expected" }

void
bar ()
{
  try { } catch (auto i) { }            // { dg-error "18:parameter" }
  try { } catch (auto) { }            // { dg-error "18:parameter" }
  try { } catch (auto *i) { }            // { dg-error "18:parameter" }
  try { } catch (auto *) { }            // { dg-error "18:parameter" }
}

void
baz (int i, ...)
{
  va_list ap;
  va_start (ap, i);
  va_arg (ap, auto);                // { dg-error "invalid use of" }
  va_arg (ap, auto *);                // { dg-error "invalid use of|expected" }
  va_arg (ap, auto &);                // { dg-error "invalid use of|expected" }
  va_end (ap);
}

template <typename T = auto> struct E {};    // { dg-error "invalid use of" }
template <class T = auto *> struct F {};    // { dg-error "invalid use of|expected" }

auto fnlate () -> auto;                // { dg-error "invalid use of" "" { target { ! c++14 } } }
auto fnlate2 () -> auto *;            // { dg-error "invalid use of|expected" "" { target { ! c++14 } } }

void
badthrow () throw (auto)            // { dg-error "invalid use of" }
{                        // { dg-error "dynamic exception specification" "" { target c++17 } .-1 }
}                        // { dg-warning "deprecated" "" { target { ! c++17 } } .-2 }

void
badthrow2 () throw (auto &)            // { dg-error "invalid use of|expected" }
{                        // { dg-error "dynamic exception specification" "" { target c++17 } .-1 }
}                        // { dg-warning "deprecated" "" { target { ! c++17 } } .-2 }

template <auto V = 4> struct G {};        // { dg-error "11:parameter" "" { target { ! c++17 } } }

template <typename T> struct H { H (); ~H (); };
H<auto> h;                    // { dg-error "invalid|initializer|not permitted in template argument" }

void qq (auto);               // { dg-error "auto" "" { target { ! concepts } } }
void qr (auto*);           // { dg-error "auto" "" { target { ! concepts } } }

// PR c++/46145
typedef auto autot;        // { dg-error "9:typedef declared .auto." }

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