libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git] / gcc / testsuite / gcc.dg / pr105333.c
blobbd8bd4cd56ce03f8b803ca5ab6923440d879a953
1 /* PR rtl-optimization/105333 */
2 /* { dg-do compile { target int128 } } */
3 /* { dg-options "-Og -fno-tree-coalesce-vars -fno-tree-fre" } */
5 int g;
6 short s;
8 static inline unsigned short
9 bar (short a, __int128 b)
11 b ^= (unsigned long) -a;
12 __builtin_strncpy ((void *) &s, (void *) &a, 1);
13 b *= 14;
14 return b;
17 void
18 foo (void)
20 g *= (__int128) bar (1, 1);