summaryrefslogtreecommitdiff
path: root/clang/test/SemaCXX/attr-after-definition.cpp
blob: 148a63e4d6c1cc51654fd022973a6c6157dc9ac2 (about) (plain)
1
2
3
4
5
6
7
8
9
// RUN: %clang_cc1 -fsyntax-only -verify %s
struct X { };
struct Y { };

bool f0(X) { return true; } // expected-note{{definition}}
bool f1(X) { return true; }

__attribute__ ((__visibility__("hidden"))) bool f0(X); // expected-warning{{attribute}}
__attribute__ ((__visibility__("hidden"))) bool f1(Y);