Daniel Dunbar | 8fbe78f | 2009-12-15 20:14:24 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -fsyntax-only -verify %s |
Douglas Gregor | 90820ee | 2009-08-28 22:54:55 +0000 | [diff] [blame] | 2 | struct X { }; |
3 | struct Y { }; | ||||
4 | |||||
5 | bool f0(X) { return true; } // expected-note{{definition}} | ||||
6 | bool f1(X) { return true; } | ||||
7 | |||||
8 | __attribute__ ((__visibility__("hidden"))) bool f0(X); // expected-warning{{attribute}} | ||||
9 | __attribute__ ((__visibility__("hidden"))) bool f1(Y); |