testsuite/small/attr-12.c
raw| 1 | /* { dg-options "-DCE_EXTRACT_FUNCTIONS=f -DCE_NO_EXTERNALIZATION" }*/ |
| 2 | |
| 3 | typedef struct _GFile GFile; |
| 4 | typedef GFile *GFile_autoptr; |
| 5 | static __attribute__((__unused__)) inline void |
| 6 | glib_autoptr_cleanup_GFile(GFile **_ptr) { |
| 7 | return; |
| 8 | } |
| 9 | |
| 10 | void f() { |
| 11 | GFile** ptr; |
| 12 | __attribute__((cleanup(glib_autoptr_cleanup_GFile))) GFile_autoptr |
| 13 | socket_dir = ((void *)0); |
| 14 | } |
| 15 | |
| 16 | /* { dg-final { scan-tree-dump "glib_autoptr_cleanup_GFile\(GFile \*\*_ptr\)" } } */ |