OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.old-deja/] [g++.bugs/] [900519_04.C] - Rev 749

Go to most recent revision | Compare with Previous | Blame | View Log

// { dg-do run  }
// g++ 1.37.1 bug 900519_04

// The following legal code causes g++ to segfault.

// cfront 2.0 passes this test.

// keywords: segfault, references, initialization

int cint_obj = 9;

void take_cint_ref (int& arg) { }

int& cint_ref_0 = cint_obj;
int& cint_ref_1 = cint_obj;

void test_0 ()
{
  take_cint_ref (cint_ref_1);   // causes segfault
}

int main () { return 0; }

Go to most recent revision | Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.