xref: /llvm-project/clang/test/SemaOpenCL/warn-missing-prototypes.cl (revision df195d8aedffa9211f37db7fd08f46adf41386f0)
1// RUN: %clang_cc1 -fsyntax-only -verify -Wmissing-prototypes %s
2
3void 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}}
5
6// Don't warn about kernel functions.
7kernel void g() { }
8