diff options
author | Richard Pennington <rich@pennware.com> | 2010-02-23 12:22:13 +0000 |
---|---|---|
committer | Richard Pennington <rich@pennware.com> | 2010-02-23 12:22:13 +0000 |
commit | 33efe2f088ae40b5129fe4ab021912e80129e155 (patch) | |
tree | 0a9b8977502ce3b45f9e32fc0cec7c903d95fb0d /test/Parser/knr_parameter_attributes.c | |
parent | 786cc72ecaadafbe339edc548afa9daf891c4278 (diff) |
Retain attributes for K&R style parameter declarations.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@96941 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Parser/knr_parameter_attributes.c')
-rw-r--r-- | test/Parser/knr_parameter_attributes.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/Parser/knr_parameter_attributes.c b/test/Parser/knr_parameter_attributes.c new file mode 100644 index 0000000000..fb975cbf33 --- /dev/null +++ b/test/Parser/knr_parameter_attributes.c @@ -0,0 +1,11 @@ +// RUN: %clang_cc1 -fsyntax-only -W -Wall -Werror -verify %s + +int f(int i __attribute__((__unused__))) +{ + return 0; +} +int g(i) + int i __attribute__((__unused__)); +{ + return 0; +} |