aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/gen-attrs-11.C
blob: 504b4565679c489469a7663e9d108e6987911cfd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// { dg-do compile { target c++11 } }
// PR c++/13791

template <typename T> struct O {
  struct [[gnu::packed]] I {
    int i;
    char c;
  };

  I* foo();
};

template <typename T>
typename O<T>::I*
O<T>::foo() { return 0; }

template class O<int>;