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

Subversion Repositories openrisc

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

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

Line No. Rev Author Line
1 693 jeremybenn
// PR c++/32384
2
// { dg-do compile }
3
 
4
struct A
5
{
6
  typedef int T;
7
  T foo ();
8
 
9
  A () { foo ().~T (); }
10
};
11
 
12
template struct B
13
{
14
  typedef int T;
15
  T foo ();
16
 
17
  B () { foo ().~T (); }
18
};
19
 
20
template struct C
21
{
22
  T t;
23
  C () { t.~T (); }
24
};
25
 
26
template struct D
27
{
28
  typedef int T;
29
  S foo ();
30
 
31
  D () { foo ().~T(); }
32
};
33
 
34
struct Z
35
{
36
  Z () {}
37
  ~Z () {}
38
};
39
 
40
A a;
41
B b;
42
C c1;
43
C c2;
44
D d;

powered by: WebSVN 2.1.0

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