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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.old-deja/] [g++.jason/] [ref11.C] - Rev 149

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

// { dg-do run  }
int main(int argc, char ** argv) {

  int (&var_field_ref)[] =  * (int (*)[]) new int [42]; 
  int (&fix_field_ref)[1] =  * (int (*)[1]) new int [42]; 

  int static_field[42];

  int *const &var_field_ptr_ref  = var_field_ref; // { dg-bogus "" } 
  int *const &fix_field_ptr_ref  = fix_field_ref;
  int *const &static_field_ptr_ref  = static_field;

  int * var_field_ptr  = var_field_ref; // { dg-bogus "" } 
  int * fix_field_ptr  = fix_field_ref; 
  int * static_field_ptr  = static_field; 

  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.