llvm-project/clang/test/Parser/knr_parameter_attributes.c

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
214 B
C
Raw Normal View History

// RUN: %clang_cc1 -fsyntax-only -W -Wall -Werror -verify %s
// expected-no-diagnostics
int f(int i __attribute__((__unused__)))
{
return 0;
}
int g(i)
int i __attribute__((__unused__));
{
return 0;
}