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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.old-deja/] [g++.pt/] [cast2.C] - Blame information for rev 699

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 699 jeremybenn
// { dg-do assemble  }
2
 
3
// Copyright (C) 2000 Free Software Foundation, Inc.
4
// Contributed by Nathan Sidwell 10 Jan 2001 
5
 
6
// Bug 1588. We ICE'd on reparsing an absdcl as a cast inside a template
7
// function.
8
 
9
class A {
10
public:
11
 template  void f(void *CLUTp);
12
};
13
 
14
template  void A::f(void *CLUTp)
15
{
16
    void *CLUT;
17
 
18
    CLUT = (unsigned char [3][256])CLUTp; // { dg-error "" } cast to array
19
 
20
    return;
21
}
22
 
23
 
24
int main()
25
{
26
        A myobj;
27
        unsigned char t[3][256];
28
 
29
        myobj.f(t);
30
 
31
        return 0;
32
}

powered by: WebSVN 2.1.0

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