Fix the clang-wpa example.
[clang.git] / test / SemaCXX / attr-after-definition.cpp
blob148a63e4d6c1cc51654fd022973a6c6157dc9ac2
1 // RUN: %clang_cc1 -fsyntax-only -verify %s
2 struct X { };
3 struct Y { };
5 bool f0(X) { return true; } // expected-note{{definition}}
6 bool f1(X) { return true; }
8 __attribute__ ((__visibility__("hidden"))) bool f0(X); // expected-warning{{attribute}}
9 __attribute__ ((__visibility__("hidden"))) bool f1(Y);