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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [parse/] [semicolon4.C] - Rev 801

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

// PR c++/46890
// { dg-do compile }

struct OK1
{
  int i;
} const *ok1_var;               // No complains

struct OK2;
extern OK2 ok2a_var;

struct OK2
{
  int i;
} const &ok2_var = ok2a_var;    // No complains

struct OK3
{
  int i;
} volatile (ok3_var);           // No complains

struct E1
{
  int i;
} const;                        // { dg-error "qualifiers can only be specified for objects and functions" }

void foo (
struct E2
{                               // { dg-error "types may not be defined in parameter types" }
  int i;
} volatile);

void bar (
struct E3
{                               // { dg-error "types may not be defined in parameter types" }
  int i;
} const, int);

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.