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

Subversion Repositories openrisc

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
// PR c++/32241
2
// { dg-do compile }
3
 
4
struct A
5
{
6
  typedef int T;
7
  T &foo ();
8
  A () { foo.~T (); }   // { dg-error "does not have class type|expected" }
9
};
10
 
11
template  struct B
12
{
13
  T &foo ();
14
  B () { foo.~T (); }   // { dg-error "invalid use of member" }
15
};
16
 
17
B b;
18
 
19
template  struct C
20
{
21
  T t;
22
  C () { t.~S (); }     // { dg-error "is not of type" }
23
};
24
 
25
C c;
26
 
27
template  struct D
28
{
29
  T t;
30
  typedef long int U;
31
  D () { t.~U (); }     // { dg-error "is not of type" }
32
};
33
 
34
D d;
35
 
36
template  struct E
37
{
38
  T &foo ();
39
  typedef long int U;
40
  E () { foo.~U (); }   // { dg-error "is not of type" }
41
};
42
 
43
E e;

powered by: WebSVN 2.1.0

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