1 /* Verify that attribute returns_nonnull on global and local function
2 declarations is merged.
4 { dg-options "-Wall -fdump-tree-optimized -fdelete-null-pointer-checks" }
5 { dg-skip-if "" keeps_null_pointer_checks } */
10 void frnn_local_local (void)
12 __attribute__ ((returns_nonnull
)) void* frnn1 (void);
18 void gnr_local_local (void)
26 void frnn_local_global (void)
28 __attribute__ ((returns_nonnull
)) void* frnn2 (void);
36 void gnr_local_global (void)
42 __attribute__ ((returns_nonnull
)) void* frnn3 (void);
44 void frnn_global_local (void)
50 void gnr_global_local (void)
59 /* { dg-final { scan-tree-dump-not "foo" "optimized" } } */