summaryrefslogtreecommitdiff
path: root/clang/test/Parser/knr_parameter_attributes.c
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/Parser/knr_parameter_attributes.c')
-rw-r--r--clang/test/Parser/knr_parameter_attributes.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/clang/test/Parser/knr_parameter_attributes.c b/clang/test/Parser/knr_parameter_attributes.c
new file mode 100644
index 0000000..fb975cb
--- /dev/null
+++ b/clang/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;
+}