gcc/testsuite/gcc.dg/pr93399.c
raw| 1 | /* PR middle-end/93399 */ |
| 2 | /* { dg-do assemble } */ |
| 3 | /* { dg-options "-fverbose-asm -dA -g -O3" } */ |
| 4 | |
| 5 | extern inline __attribute__ ((__always_inline__, __gnu_inline__)) char * |
| 6 | strstr (const char *haystack, const char *needle) |
| 7 | { |
| 8 | return __builtin_strstr (haystack, needle); |
| 9 | } |
| 10 | |
| 11 | int |
| 12 | main (int argc, const char **argv) |
| 13 | { |
| 14 | char *substr = strstr (argv[0], "\n"); |
| 15 | char *another = strstr (argv[0], "\r\n"); |
| 16 | return 0; |
| 17 | } |