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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [ext/] [alias-decl-attr3.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
// { dg-options "-std=c++0x" }
2
// { dg-do run }
3
 
4
template 
5
int
6
align_of_type_wide_array()
7
{
8
    using type_wide_array __attribute((aligned(__alignof(T))))
9
        = unsigned char[sizeof (T)];
10
 
11
    return __alignof(type_wide_array);
12
}
13
 
14
int
15
main ()
16
{
17
    if (align_of_type_wide_array() == __alignof(int))
18
        return 0;
19
    else
20
        return 1;
21
}

powered by: WebSVN 2.1.0

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