diff options
Diffstat (limited to 'gcc/testsuite/g++.dg/cpp0x/gen-attrs-29.C')
-rw-r--r-- | gcc/testsuite/g++.dg/cpp0x/gen-attrs-29.C | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/cpp0x/gen-attrs-29.C b/gcc/testsuite/g++.dg/cpp0x/gen-attrs-29.C new file mode 100644 index 0000000..f3da452 --- /dev/null +++ b/gcc/testsuite/g++.dg/cpp0x/gen-attrs-29.C @@ -0,0 +1,10 @@ +// PR c++/33506 +// { dg-do compile { target c++11 } } + +extern int f1 [[gnu::warn_unused_result]] (char *) ; +extern int f2 [[gnu::warn_unused_result]] (char *) throw () ; +extern int f2 (char *) throw (); + +extern int f3 [[gnu::nonnull (1)]] (char *) ; +extern int f4 [[gnu::nonnull (1)]] (char *) throw (); +extern int f4 (char *) throw (); |