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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [template/] [qualttp20.C] - Blame information for rev 700

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

Line No. Rev Author Line
1 693 jeremybenn
// { dg-do compile }
2
// { dg-options "-pedantic -pedantic-errors" }
3
 
4
// Copyright (C) 2001 Free Software Foundation, Inc.
5
// Contributed by Nathan Sidwell 15 Dec 2001 
6
 
7
// PR 2645
8
 
9
struct AS
10
{
11
  typedef void (myT) ();
12
  struct L {};
13
 
14
};
15
 
16
 
17
template  struct B1 : T
18
{
19
  typedef typename T::L __restrict__ r;// { dg-error "'__restrict__' qualifiers cannot" "" }
20
  typedef typename T::myT __restrict__ p;
21
 
22
  // The following are DR 295 dependent
23
  typedef typename T::myT volatile *myvolatile;
24
  typename T::myT volatile *a;
25
  myvolatile b;
26
};
27
template  struct B2 : T
28
{
29
  // The following are DR 295 dependent
30
  typedef typename T::myT const *myconst;
31
  typename T::myT const *a;
32
  myconst b;
33
};
34
 
35
B1 b1;  // { dg-message "required" "" }
36
B2 b2;

powered by: WebSVN 2.1.0

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