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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [ext/] [visibility/] [anon7.C] - Blame information for rev 696

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

Line No. Rev Author Line
1 693 jeremybenn
// PR c++/34094
2
// { dg-do compile }
3
 
4
namespace
5
{
6
  struct A {
7
    static int bar ();
8
    static int i;               // { dg-error "used, but not defined" "" { xfail *-*-* } }
9
    static int j;
10
    static int k;
11
    static int l;
12
    static const int m = 16;
13
    static const int n = 17;
14
  };
15
  int A::j = 4;
16
  int A::k;
17
  const int A::m;
18
}
19
 
20
int foo (void)
21
{
22
  return A::i + A::j + A::k + A::m + A::n + A::bar ();
23
}

powered by: WebSVN 2.1.0

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