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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [gcc/] [testsuite/] [g++.dg/] [ext/] [tmplattr9.C] - Blame information for rev 826

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 301 jeremybenn
// PR c++/34937, 34962
2
// { dg-require-weak "" }
3
// { dg-options "" }
4
 
5
struct A
6
{
7
  static const int i;
8
};
9
 
10
template void foo()
11
{
12
  int x[A::i] __attribute((vector_size(8)));
13
}
14
 
15
template struct B
16
{
17
  enum { a, b = a };
18
  void bar(B) __attribute((weak));
19
};
20
 
21
void f()
22
{
23
  foo<0>();
24
  B<0> b;
25
  b.bar (B::b>());
26
}

powered by: WebSVN 2.1.0

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