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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.dg/] [template/] [dependent-expr1.C] - Blame information for rev 825

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

Line No. Rev Author Line
1 149 jeremybenn
// { dg-do compile }
2
 
3
// Copyright (C) 2003 Free Software Foundation, Inc.
4
// Contributed by Nathan Sidwell 30 Jun 2003 
5
 
6
// PR c++ 9779. ICE
7
 
8
struct I
9
{
10
};
11
 
12
void Foo (int);
13
namespace std
14
{
15
  template 
16
  void Baz (I *x)
17
  {
18
    Foo (sizeof (I));
19
    Foo (sizeof (x));
20
    Foo (__alignof__ (I));
21
    Foo (__alignof__ (x));
22
    Foo (x->~I ()); // { dg-error "" }
23
    //    Foo (typeid (I));
24
    Foo (delete x); // { dg-error "" }
25
    Foo (delete[] x); // { dg-error "" }
26
    Foo (throw x); // { dg-error "" }
27
  }
28
 
29
}

powered by: WebSVN 2.1.0

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