[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / SemaOpenCL / warn-missing-prototypes.cl
blob1b2eed555d475c13abed1f3350bb71cfb76523cb
1 // RUN: %clang_cc1 -fsyntax-only -verify -Wmissing-prototypes %s
3 void f() { } // expected-warning {{no previous prototype for function 'f'}}
4 // expected-note@-1{{declare 'static' if the function is not intended to be used outside of this translation unit}}
6 // Don't warn about kernel functions.
7 kernel void g() { }