cgraph: A COMDAT decl always has non-zero address.
[gcc.git] / gcc / testsuite / c-c++-common / pr71372.c
1 /* PR c++/71372 */
2 /* { dg-do compile } */
3 /* { dg-options "-O2 -fdump-tree-optimized" } */
4
5 void
6 foo (volatile int *p, int q)
7 {
8 *(volatile int *)p = 0;
9 *(p + (q - q) + 1) = 0;
10 *(p + (q - q) + 2) = 0;
11 *(p + (q - q) + 3) = 0;
12 }
13
14 /* { dg-final { scan-tree-dump-times " ={v} " 4 "optimized" } } */