Fix warning with -Wsign-compare -Wsystem-headers
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / strlen-1.c
blob57261c63eafba6e5f1f783f61eefb4c9bfe0b5c8
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-optimized" } */
3 extern const unsigned long base;
4 static inline void wreg(unsigned char val, unsigned long addr) __attribute__((always_inline));
5 static inline void wreg(unsigned char val, unsigned long addr)
7 *((volatile unsigned char *) (__SIZE_TYPE__) (base + addr)) = val;
9 void wreg_twice(void)
11 wreg(0, 42);
12 wreg(0, 42);
15 /* We should not remove the second null character store to (base+42) address. */
16 /* { dg-final { scan-tree-dump-times " ={v} 0;" 2 "optimized" } } */