diff options
Diffstat (limited to 'gcc/testsuite/g++.dg/ext/attrib29.C')
-rw-r--r-- | gcc/testsuite/g++.dg/ext/attrib29.C | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/ext/attrib29.C b/gcc/testsuite/g++.dg/ext/attrib29.C new file mode 100644 index 000000000..710a5ce27 --- /dev/null +++ b/gcc/testsuite/g++.dg/ext/attrib29.C @@ -0,0 +1,10 @@ +// PR c++/33506 +// { dg-do compile } + +extern int f1 (char *) __attribute__ ((warn_unused_result)); +extern int f2 (char *) throw () __attribute__ ((warn_unused_result)); +extern int f2 (char *) throw (); + +extern int f3 (char *) __attribute__ ((nonnull (1))); +extern int f4 (char *) throw () __attribute__ ((nonnull (1))); +extern int f4 (char *) throw (); |