summaryrefslogtreecommitdiffstats
path: root/clang/test/Parser/attributes.c
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/Parser/attributes.c')
-rw-r--r--clang/test/Parser/attributes.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/clang/test/Parser/attributes.c b/clang/test/Parser/attributes.c
index 0746517daa5..d7fc35d92b3 100644
--- a/clang/test/Parser/attributes.c
+++ b/clang/test/Parser/attributes.c
@@ -43,3 +43,15 @@ void (*h2)(int (*f2)(y, attribute(()) x)); // expected-error {{expected ident
void (*h3)(void (*f3)(attribute(()) x)); // expected-warning {{defaults to 'int'}}
void (*h4)(void (*f4)(attribute(()))); // expected-error {{expected parameter declarator}}
+
+
+
+// rdar://6131260
+int foo42(void) {
+ int x, attribute((unused)) y, z;
+ return 0;
+}
+
+// rdar://6096491
+void attribute((noreturn)) d0(void), attribute((noreturn)) d1(void);
+
OpenPOWER on IntegriCloud