1*f4a2713aSLionel Sambuc // RUN: %clang_cc1 -fsyntax-only -verify %s
2*f4a2713aSLionel Sambuc struct X { };
3*f4a2713aSLionel Sambuc struct Y { };
4*f4a2713aSLionel Sambuc 
f0(X)5*f4a2713aSLionel Sambuc bool f0(X) { return true; } // expected-note{{definition}}
f1(X)6*f4a2713aSLionel Sambuc bool f1(X) { return true; }
7*f4a2713aSLionel Sambuc 
8*f4a2713aSLionel Sambuc __attribute__ ((__visibility__("hidden"))) bool f0(X); // expected-warning{{attribute}}
9*f4a2713aSLionel Sambuc __attribute__ ((__visibility__("hidden"))) bool f1(Y);
10