diff options
author | Chris Lattner <sabre@nondot.org> | 2008-10-20 04:57:38 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-10-20 04:57:38 +0000 |
commit | 29e6f2b674bd463bdba4e26d175eacd27f97b31c (patch) | |
tree | d99b23797e012808dbf5364da76a89931af67c3b /clang/test/Parser/attributes.c | |
parent | 8ff2c6c9f060b30f31c88d79d76a5c665157cbe3 (diff) | |
download | bcm5719-llvm-29e6f2b674bd463bdba4e26d175eacd27f97b31c.tar.gz bcm5719-llvm-29e6f2b674bd463bdba4e26d175eacd27f97b31c.zip |
Support attributes in *yet another* place. Is there any place you
can't stick an attributes?
llvm-svn: 57795
Diffstat (limited to 'clang/test/Parser/attributes.c')
-rw-r--r-- | clang/test/Parser/attributes.c | 12 |
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); + |