aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/ext/attrib65.C
blob: 0af138700f626e017552e0e8afd71cc50c206861 (plain)
1
2
3
4
5
6
7
// PR c++/102399
// { dg-do compile { target c++11 } }
// Test mixing the GNU and standard forms of attributes.

#define EXPORT __attribute__((visibility("default")))

struct [[nodiscard]] EXPORT Foo { Foo(); };