llvm-capstone/clang/test/Parser/opencl-kernel.cl
Aaron Ballman 4be105c98a Silence some false positive -Wstrict-prototype warnings
Before issuing the warning about use of a strict prototype, check if
the declarator is required to have a prototype through some other means
determined at parse time.

This silences false positives in OpenCL code (where the functions are
forced to have a prototype) and block literal expressions.
2022-05-13 08:31:52 -04:00

11 lines
132 B
Common Lisp

// RUN: %clang_cc1 %s -verify -pedantic -fsyntax-only
// expected-no-diagnostics
__kernel void test()
{
}
kernel void test1()
{
}