blob: 148a63e4d6c1cc51654fd022973a6c6157dc9ac2 [file] [log] [blame]
Daniel Dunbara5728872009-12-15 20:14:24 +00001// RUN: %clang_cc1 -fsyntax-only -verify %s
Douglas Gregorfdc39192009-08-28 22:54:55 +00002struct X { };
3struct Y { };
4
5bool f0(X) { return true; } // expected-note{{definition}}
6bool f1(X) { return true; }
7
8__attribute__ ((__visibility__("hidden"))) bool f0(X); // expected-warning{{attribute}}
9__attribute__ ((__visibility__("hidden"))) bool f1(Y);