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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [template/] [static19.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++/24275
2
 
3
template   struct bool_var {
4
  static const bool value = val;
5
};
6
namespace is_inc_ {
7
  struct any {
8
    template  any(T const&);
9
  };
10
  int operator++(any const&);
11
  template    struct impl {
12
    static T &x;
13
    static const bool value = sizeof(++x) == 1;
14
  };
15
}
16
template struct is_incr : bool_var< is_inc_::impl::value> {};
17
struct not_incr{};
18
typedef int sa1[ is_incr::value ? -1 : 1];

powered by: WebSVN 2.1.0

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