aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/ext/attrib64.C
blob: 4a4505fc4b20a5c7b96645b5618c259cd299533e (plain)
1
2
3
4
5
6
7
8
9
10
11
// PR c++/104667
// { dg-do compile }

template<typename> struct A {
  enum E { // { dg-warning "only applies to function types" }
    e __attribute__ ((access(read_only))),
    f __attribute__ ((deprecated))
  };
};

A<int> a;