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-attr2.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
 
3
template
4
struct X {
5
    using layout_type __attribute ((aligned(__alignof(double)))) =
6
        char[sizeof(T)];
7
    layout_type data;
8
};
9
 
10
template
11
struct Y {
12
    using layout_type  __attribute ((aligned(__alignof(T)))) =
13
        char[sizeof(T)];
14
    layout_type data;
15
};
16
 
17
template
18
struct Z {
19
    using layout_type __attribute ((aligned(__alignof(T)))) =
20
        char[sizeof(T)];
21
    struct Z2 {
22
        layout_type data;
23
    } in;
24
};
25
 
26
template
27
struct A;
28
 
29
template 
30
struct A {
31
    using layout_type __attribute ((aligned(__alignof(T)))) =
32
        char[sizeof(T)];
33
  layout_type data;
34
};
35
 
36
template struct StaticAssert;
37
template<> struct StaticAssert {};
38
 
39
StaticAssert<__alignof(X) == __alignof(double)> d1;
40
StaticAssert<__alignof(Y) == __alignof(double)> d2;
41
StaticAssert<__alignof(Z) == __alignof(double)> d3;
42
StaticAssert<__alignof(A) == __alignof(double)> d4;

powered by: WebSVN 2.1.0

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