summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/Wattributes1.C
blob: 2223936fba3202e6455d3cd3ee3a01fec85a2c08 (plain)
1
2
3
4
5
6
7
8
// PR c++/60373
// { dg-do compile { target c++11 } }
// { dg-require-visibility "" }

#include <new>
__attribute__((visibility("hidden")))void*operator new(std::size_t); // { dg-warning "visibility attribute ignored" }

// { dg-message "previous declaration" "" { target *-*-* } 0 }