mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-12-11 17:08:42 +00:00
4be105c98a
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.
11 lines
132 B
Common Lisp
11 lines
132 B
Common Lisp
// RUN: %clang_cc1 %s -verify -pedantic -fsyntax-only
|
|
// expected-no-diagnostics
|
|
|
|
__kernel void test()
|
|
{
|
|
}
|
|
|
|
kernel void test1()
|
|
{
|
|
}
|