gcc/testsuite/gcc.dg/ubsan/pr103456.c
raw| 1 | /* PR tree-optimization/103456 */ |
| 2 | /* { dg-do compile } */ |
| 3 | /* { dg-options "-fsanitize=undefined -O -fdump-tree-objsz -ffat-lto-objects" } */ |
| 4 | |
| 5 | static char *multilib_options = "m64/m32"; |
| 6 | |
| 7 | void |
| 8 | used_arg_t (void) |
| 9 | { |
| 10 | char *q = multilib_options; |
| 11 | for (;;) |
| 12 | { |
| 13 | while (*q) |
| 14 | q++; |
| 15 | while (__builtin_strchr (q, '_') == 0) |
| 16 | while (*q) |
| 17 | q++; |
| 18 | } |
| 19 | } |
| 20 | |
| 21 | /* { dg-final { scan-tree-dump-not "maximum object size 0" "objsz1" } } */ |