This commit was manufactured by cvs2svn to create branch
[official-gcc.git] / gcc / testsuite / g++.dg / ext / attrib20.C
blobe46e8ae20776b5e33282f3a5c53e3dc1c06d60c1
1 // { dg-do compile }
2 // { dg-options "-g" }
3 // Origin: <jan at etpmod dot phys dot tue dot nl>
4 // PR c++/19508: avoid attributes for template parameters
6 template <typename T>
7 struct BVector
9   typedef T T2;
10   typedef T value_type __attribute__ ((aligned(8)));    // { dg-bogus "attribute" "attribute" { xfail *-*-* } }
11   typedef T2 value_type2 __attribute__ ((aligned(8)));  // { dg-bogus "attribute" "attribute" { xfail *-*-* } }
12   value_type v;
14 BVector<int> m;
16 template <template <class> class T>
17 struct BV2
19   typedef T<float> value_type __attribute__((aligned(8))); // { dg-bogus "attribute" "attribute" { xfail *-*-* } }
20   value_type v;
22 BV2<BVector> m2;