LittleDemon WebShell


Linux in-mum-web1499.main-hosting.eu 5.14.0-503.40.1.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Mon May 5 06:06:04 EDT 2025 x86_64
Path : /opt/golang/1.22.0/src/debug/dwarf/testdata/
File Upload :
Command :
Current File : //opt/golang/1.22.0/src/debug/dwarf/testdata/cppunsuptypes.cc

// Copyright 2019 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

// cppunsuptypes.elf built with g++ 7.3
//    g++ -g -c -o cppunsuptypes.elf cppunsuptypes.cc

int i = 3;
double d = 3;

// anonymous reference type
int &culprit = i;

// named reference type
typedef double &dref;
dref dr = d;

// incorporated into another type
typedef struct {
  dref q;
  int &r;
} hasrefs;

hasrefs hr = { d, i };

// This code is intended to trigger a DWARF "pointer to member" type DIE
struct CS { int dm; };

int foo()
{
  int CS::* pdm = &CS::dm;
  CS cs = {42};
  return cs.*pdm;
}

LittleDemon - FACEBOOK
[ KELUAR ]