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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [cpp0x/] [variadic-ex8.C] - Blame information for rev 715

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

Line No. Rev Author Line
1 693 jeremybenn
// { dg-options "-std=gnu++0x" }
2
template struct X { static const bool primary = true; };
3
template struct X {
4
  static const bool primary = false;
5
};
6
template struct Y { static const bool primary = true; };
7
template struct Y {
8
  static const bool primary = false;
9
};
10
 
11
static_assert (X::primary, "uses primary template");
12
static_assert (!X::primary,
13
               "uses partial specialization");
14
static_assert (X::primary, "uses primary template");
15
static_assert (Y<>::primary, "uses primary template");
16
static_assert (!Y::primary,
17
               "uses partial specialization");
18
static_assert (Y::primary, "uses primary template");

powered by: WebSVN 2.1.0

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