summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/ext/attrib29.C
blob: 710a5ce276308deed889ace82e1b4ecc7c041aa2 (plain)
1
2
3
4
5
6
7
8
9
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 ();