gcc/testsuite/gcc.dg/builtin-dynamic-object-size-18.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-options "-O2 -fdump-tree-optimized" } */ |
| 3 | /* __stpncpy_chk could return buf up to buf + 64, so |
| 4 | the minimum object size might be far smaller than 64. */ |
| 5 | /* { dg-final { scan-tree-dump-not "return 64;" "optimized" } } */ |
| 6 | |
| 7 | #define __builtin_object_size __builtin_dynamic_object_size |
| 8 | #include "builtin-object-size-18.c" |