LWG 3035. std::allocator's constructors should be constexpr
[official-gcc.git] / gcc / testsuite / gcc.dg / pr34856.c
blob62041e248ba2239f2f3c52d62d8780f55f9c5f93
1 /* { dg-do compile } */
2 /* { dg-options "-O2" } */
3 /* { dg-options "-O2 -msse2" { target { i?86-*-* x86_64-*-* } } } */
4 /* { dg-options "-O2 -maltivec" { target { powerpc*-*-linux* && powerpc_altivec_ok } } } */
6 typedef __UINTPTR_TYPE__ uintptr_t;
8 #undef __vector
9 #define __vector __attribute__ ((__vector_size__ (16)))
11 typedef __vector signed char qword;
12 typedef __vector uintptr_t VU;
14 extern short g[192 + 16];
16 void f (qword);
18 void f1 (unsigned ctr)
20 VU pin;
22 pin = (VU){(uintptr_t) &g[16]};
25 f ((qword) pin);
26 ctr--;
28 while (ctr);
31 /* Ignore a warning that is irrelevant to the purpose of this test. */
32 /* { dg-prune-output ".*GCC vector passed by reference.*" } */