attrib20.c
来自「用于进行gcc测试」· C语言 代码 · 共 24 行
C
24 行
// { dg-do compile }// { dg-options "-g" }// Origin: <jan at etpmod dot phys dot tue dot nl>// PR c++/19508: avoid attributes for template parameterstemplate <typename T>struct BVector{ typedef T T2; typedef T value_type __attribute__ ((aligned(8))); // { dg-bogus "attribute" "attribute" } typedef T2 value_type2 __attribute__ ((aligned(8))); // { dg-bogus "attribute" "attribute" } value_type v;};BVector<int> m;template <template <class> class T>struct BV2{ typedef T<float> value_type __attribute__((aligned(8))); // { dg-bogus "attribute" "attribute" } value_type v;};BV2<BVector> m2;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?