cgraph: A COMDAT decl always has non-zero address.
[gcc.git] / gcc / testsuite / c-c++-common / pr72747-1.c
1 /* { dg-do compile } */
2 /* { dg-require-effective-target powerpc_altivec_ok } */
3 /* { dg-options "-maltivec -fdump-tree-gimple" } */
4
5 /* PR 72747: Test that cascaded definition is happening for constant vectors. */
6
7 #include <altivec.h>
8
9 int main (int argc, char *argv[])
10 {
11 __vector int v1,v2;
12 v1 = v2 = vec_splats ((int) 42);
13 return 0;
14 }
15 /* { dg-final { scan-tree-dump-times " v2 = { 42, 42, 42, 42 }" 1 "gimple" } } */
16